0
print x copies of the value of x followed by y copies of the value of message.
int x,y; string name, message;
2 ответов
+ 2
You can do this easy with for loops:
//print value of x, x times.
for (int i = 0; i < x; i++)
cout << x << "\n";
//print message, y times.
for (int j = 0; j < y; j++)
cout << message << "\n";
- 2
Kthxbye