Que:- WAP TO INPUT ANY STRING AND COUNT NO. OF VOWELS.
#include<stdio.h>
#include<conio.h>
void main()
{
char str[20];
int i;
int vc=0;
clrscr();
printf("\n Enter any string --> ");
scanf("%s",str);
i=0;
while(str[i]!='\0')
{
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u'||str[i]=='A'||str[i]=='E'||str[i]=='I'||str[i]=='O'||str[i]=='U')
vc++;
i++;
}
printf("\n No. of vowels in %s= %d",str,vc);
getch();
}