#include main() { char ch,junk; int vow,cons; vow=cons=0; clrscr(); while(ch!='/') { printf("\nEnter a character: "); scanf("%c",&ch); switch (ch) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U':vow++; break; case '/':break; default:cons++; } scanf("%c",&junk); } printf("\nTotal no of vowels=%d & consonants =%d",vow,cons); getch(); }