include iostream using namespace std int main string text int count wh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
using namespace std;
int main()
{
string text;
int count;
while (cin >> text >> count)
{
int height = text.length();
while (height--)
{
for (int i=0; i<count;i++) cout << text;
char c = text[0];
text.erase(0,1);
text += c;
cout << endl;
}
}
}