Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<cstring>
- using namespace std;
- int main()
- {
- int n,i;
- char s[256];
- cin.getline(s,256);
- n=strlen(s);
- int m=0,j;
- for(i=1;i<=n;i++)
- {
- for(j=m;j<=n;j++)
- cout<<s[j];
- cout<<'\n';
- m++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement