Mrm2299

Vocal/ consonante

Sep 25th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <iostream>
  4. #include <stdlib.h>
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10.     char c1;
  11.     cout << "escribe un caracter" << endl;
  12.     cin >> c1;
  13.     switch (c1)
  14. {
  15.  
  16. case 'a':
  17. case 'e':
  18. case 'i':
  19. case 'o':
  20. case 'u':
  21.     cout << "es una vocal nya :3" << endl;
  22.     break;
  23.  
  24. default:
  25.     cout << "es una consonante" << endl;
  26.  
  27. }
  28.  
  29.  
  30.  
  31.  
  32.     system("pause");
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment