R
RA
RAJ
RAJA
RAJAT
#include <stdio.h>
#include <string.h>
int main ()
{
char a[100];
int i,j;
printf("Enter a name: ");
gets(a);
for(i=0;i<a[i];i++)
{
for(j=0;j<=i;j++)
{
printf("%c",a[j]);
}
printf("\n");
}
return 0;
}
No comments:
Post a Comment