#include<stdio.h>
void main()
{
char str[20];
int i,count=0;
printf("Enter the string:");
gets(str);
for(i=0;str[i]!='\0';i++)
{
count++;
}
printf("the number of character: %d",count);
}
void main()
{
char str[20];
int i,count=0;
printf("Enter the string:");
gets(str);
for(i=0;str[i]!='\0';i++)
{
count++;
}
printf("the number of character: %d",count);
}
No comments:
Post a Comment