ulvis.paste.net - pastebin

Paste Search Dynamic
Recent pastes
g
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main() {
  5. string n;
  6. cin>>n;
  7. int k=0,g=0;
  8. k=n.length();
  9. for (int i=0; i<k; i++){
  10.         if (n[i]=='a'||n[i]=='e'||n[i]=='i'||n[i]=='u'||n[i]=='0'||n[i]=='o'||n[i]=='2'||n[i]=='4'||n[i]=='6'||n[i]=='8'){
  11.                 g++;
  12.         }
  13. }
  14. cout<<g;
  15.         return 0;
  16. }
Parsed in 0.004 seconds