Back To C++ Single Dimensional Arrays Index
//program to input a sentence (char array) and count number of vowels and consonants in it using for loop #include
#include
#include
#include
void main() { clrscr(); char str[20]; char ch; int i,len; int vowels=0,cons=0; cout<<"\nenter a string"; gets(str); len=strlen(str); for(i=0;i