Pages
Home
For beginners
Download C++ Books
Solution manual C++ How to program
Download C/C++ Compiler
Tricky Questions in C++
Ask Your Question
Cricket Scores
Know Islam
Contact us
Need a project done?
C++ Programming Developer
Search This Blog
Vowel words counter C++
#include <iostream>
using namespace std;
void main(){
int c = 0;
char a[100];
cin >> a;
for (int i = 0 ; i<100; i++){
if (a[i] == 'a' || a[i] == 'e' || a[i] == 'i' || a[i] == 'o' || a[i] == 'u') {
c++;
}
}
cout << c << endl;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
"Don't let anyone ever make you feel like you don't deserve what you
want
."
No comments:
Post a Comment