Mar
30
/*
HHHHH
EEEE
LLL
LL
O
*/
#include<stdio.h>
void main(){
char st[100];
char ch;
int i,j,k;
printf(“Enter a string: “);
gets(st);
for(i=0;st[i]!=’\0′;i++);
for(j=0;st[j]!=’\0′;j++){
for(k=i-1;k>=j;k–){
printf(“%c”,st[j]);
}
printf(“\n”);
}
}
Leave a Reply
No Comments