#include<iostream>
#include<conio.h>
#include<string.h>
int main(){
int i,j,panjang;
char nama[80];
clrscr( );
cout<<"Silahkan Masukan Nama Kamu : ";
cin>>nama;
cout<<"\n\n";
panjang=strlen(nama);
for (i=0;i < panjang;i++)
{
for (j=i;j < panjang;j++)
cout<<nama[j]<<" ";
cout<<endl;
}
getch();
}
6:10 AM |
Category: |
0
comments