You are on page 1of 1

#include <iostream>

#include <string.h>
using namespace std;
int main()
{
int i,k,n;
char s[50];
cin.get(s,50);
n=strlen(s);
for(i=1;i<=strlen(s);i++)
{
for(k=0;k<n-i;k++)
cout << s[k];
cout << endl;
}
}

You might also like