#include<stdio.h>
#include<string.h>
void main()
{
char line[80];
char vow[6]="aeiou";
int i,j,countv,countf,countsp,len;
countv=0;countf=0;countsp=0;
printf("\n enter the string");
scanf("%[^\n]",line);
len=strlen(line);
for(i=0;i<len;i++)
{
for(j=0;j<6;j++)
{
if(line[i]==vow[j])
countv++;
}
if(line[i]==' ')
countsp++;
else if(line[i]=='.')
countf++;
}
printf("\n the number of vowels is:%d\n the number of spaces is %d\n the number of strings is %d",countv,countsp,countf);
}
I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day! free word counter
ReplyDelete