Mar

25

//string character in each line

#include<stdio.h>
void main(){
char name[100];
int i;
printf(“Enter Your Name: “);
//scanf(“%s”,name);
gets(name);

//for(i=0;i<100;i++)
for(i=0;name[i]!=’\0′;i++)
printf(“%c\n”,name[i]);
}


Leave a Reply