#include<cstdio>
#include<cctype>
#include<iostream>
using namespace std;
int main()
{
char line[80];
int i,vowel=0;
puts(Enter a string”);
gets(line);
for(i=0;line[i]!=’\0′;i++)
switch(tolower(line[i]))
{
case ‘a’:
case ‘e’:
case ‘i’:
case ‘o’:
case ‘u’:
vowel++;
}
cout<<“The number of vowels is “<<vowel;