Advertisement
ArchiaterFaun

49

Dec 7th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string a;
  8.     cin>>a;
  9.     for (int i=0;i<a.size();i++)
  10.     {
  11.         for(int j=0;j<i;j++)
  12.             {
  13.                cout<<" ";
  14.             }
  15.             cout<<a[i]<<endl;
  16.         }
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement