#include<bits/stdc++.h> |
int main()
{
int n,m=0;
string a;
while(cin >> a){
for(int i = 0 ; i < a.size() ; i++) {
for(int j = 0 ; j < a.size() ; j++) {
if(j < i)
cout << " ";
else
if(j == a.size() - 1)
cout << a[j-i];
else
cout << a[j-i] << " ";
}
cout << endl;
}
cout << endl;
}
return 0;
}
No comments:
Post a Comment