Write a program that will read a string from the user and print the number of alphabet on that string.

#include<stdio.h>
#include<conio.h>

int main()
   {
      char  s[100];
      printf( "Enter your string: " );
      gets(s);
      printf( "\nThe number of alphabet in the string is : %d" , strlen(s));
      return 0;
    }

No comments:

Post a Comment