#include<'stdio.h'>
main()
{
char fname[10];
char lname[10];
int fc=0,lc=0,i=0;
printf("----in----\n");
scanf("%s",&fname);
scanf("%s",&lname);
printf("----out----\n");
printf("%s \n",fname);
printf("%s \n",lname);
i=0;
while(fname[i] != '\0')
{
fc++;
i++;
}
i=0;
while(lname[i] != '\0')
{
lc++;
i++;
}
printf("\nfrst : %d \n",fc);
printf("lst : %d \n",lc);
}
No comments:
Post a Comment