Advertisement
catalyn

pr 1 model teza siruri

May 14th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char s[256];
  8. int i ,j,n;
  9. cin.get(s,256);
  10. n=strlen(s);
  11. for(i=n-1;i>=0;i--)
  12. {for(j=0;j<=i;j++)
  13. cout <<s[j];
  14. cout<<'\n';
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement