Module: (C++) 子例程:过程和函数 - 1


Problem

5/12

两种选择

Problem

编写一个带有两个参数的过程 –一个自然数 N 和一个字符串 S –并通过重复 N 次来显示字符串 S
 

 

例子
<头> <正文>
# 输入 输出
1 3
好的
奥科科克
Write the program below
#include<iostream>

using namespace std;

// напишите процедуру ниже   
main()
{
	int n;
	string s;
	cin >> n;
	cin >> s;
	printLine(n, s);
}   

     

Program check result

To check the solution of the problem, you need to register or log in!