Advertisement
RieqyNS13

iseng

Jan 9th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. /*maho-permanen.com*/
  2. #include <iostream>
  3. #include <windows.h>
  4. using namespace std;
  5. int main(){
  6.     char mbuh[92];
  7.     cin>>mbuh;
  8.     int str = strlen(mbuh);
  9.     for(int a=str; a>0; a--){
  10.         for(int i=0; i<a; i++){
  11.             cout<<mbuh[i];
  12.         }
  13.     cout<<"\n";
  14.     }
  15.     for(int v=0; v<str; v++){
  16.         for(int c=v; c>=0; c--){
  17.             cout<<mbuh[c];
  18.         }
  19.     cout<<"\n";
  20.     }
  21.     system("pause>nul");
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement