C program to calculate the number of letters in a word

C Program
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char Strings[20];
    printf("Enter any word ");
    scanf("%s",&Strings);
    int number = strlen(Strings);
    printf("\nTotal number of letters in  %s is: %d",Strings,number);
}



No comments:

Post a Comment