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
void main() { char str[20]; char ch; int i,len; int vowels=0,cons=0; clrscr(); printf("\nenter a string"); gets(str); len=strlen(str); for(i=0;i