#include <stdio.h> #include <ctype.h> int isVovel(char ch); int main () { int i = 0, noVovel = 0; char str[] = 'Hi, i am software developer in java, C#, and c language'; while( str[i] ) { if(str[i] == ' ') { i++; continue; } else if(isVovel(str[i]) == 1) noVovel++; i++; } printf('NO of vovel in this string is %d', noVovel); return(0); } int isVovel(char ch){ switch(ch = tolower(ch)){ case 'a': case 'e': case 'i': case 'o': case 'u': return 1; default: return 0; } }
Output
NO of vovel in this string is 18
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Please enter the 200 character in char array.
Program
Output