Advertisement
catalyn

prob2 afisarea sufixelor

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