Feed Headline Animator

Read a sentence and count vowel ,uppercase to lower case

main()
{
char s[20];
int v, l , u ,l g;
gets (s);
lg= strlen (s)
for (i=0; i<=lg ;i++)
{
if (s [i]>= ‘A’ && s[i]<= ‘Z’)
u++;
if( s[i]>=’a’ && s[i]<=’z’)
l++;
if (s [i] ==’a’)II s[i]==’z’) II( s[i] == ‘I’) II(s[i] ==’o’) II(s[i] = =’u’)
v++;
}
printf (“Total upper case letter = %d”, u);
printf(“Total lower case letter = %d”, u);
printf(“Total vowel case letter =%d “,u);
}


Posted by: Wasim Javed

No comments:

Post a Comment