fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int i,j;
  7. char c;
  8. cin>>c;
  9. c=tolower(c);
  10. switch(c)
  11. {
  12. case 'a':
  13. case 'e':
  14. case 'i':
  15. case 'o':
  16. case 'u':
  17. cout<<"Vowel"<<endl;
  18. break;
  19. default:
  20. cout<<"consonent"<<endl;
  21. break;
  22.  
  23. }
  24.  
  25.  
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0.01s 5300KB
stdin
a
stdout
Vowel