daily pastebin goal
42%
SHARE
TWEET

49

ArchiaterFaun Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         if(i==0)
  12.         {
  13.             cout<<a[i]<<endl;
  14.         }
  15.         else
  16.         {
  17.             for(int j=0;j<i;j++)
  18.             {
  19.                cout<<" ";
  20.             }
  21.             cout<<a[i]<<endl;
  22.         }
  23.     }
  24.     return 0;
  25. }
RAW Paste Data
Top