Sign in
or
Register
Courses
Textbook
Compiler
Contests
Topics
Courses
Basics of C++
(C++) Subroutines: procedures and functions - 1
Module:
(C++) Subroutines: procedures and functions - 1
Problem
5
/12
Two options
Problem
Write a procedure that takes two parameters – a natural number
N
, and a string
S
– and displays the string
S
by repeating it
N
times.
Examples
#
Input
Output
1
3
ok
okokok
1000
ms
256 Mb
Rules for program design and list of errors in automatic problem checking
Teacher commentary