/**/ #include #include #define smax 20 int main() { int i=0, scount=0; char word[smax]; printf("Please enter a string > "); fgets(word,smax,stdin); while (i != smax-1) { if ((word[i] == 'a') || (word[i] == 'e') || (word[i] == 'i') || (word[i] == 'o') || (word[i] == 'u') || (word[i] == 'y')) { scount=scount+1; i=i+1; } else { i=i+1; } } if ((scount = 19) || (i=900)) { scount=scount-1; } printf("The number of syllables is %d.\n", scount); return 0; }