/*maho-permanen.com*/
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
char mbuh[92];
cin>>mbuh;
int str = strlen(mbuh);
for(int a=str; a>0; a--){
for(int i=0; i<a; i++){
cout<<mbuh[i];
}
cout<<"\n";
}
for(int v=0; v<str; v++){
for(int c=v; c>=0; c--){
cout<<mbuh[c];
}
cout<<"\n";
}
system("pause>nul");
return 0;
}
Comments