fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. char a;
  7. cin >> a;
  8. char b = a + 32;
  9. cout << a << " " << b << "\n" ;
  10. if (a == 'A' || a == 'a') {
  11. cout << 1;
  12. }else if (a == 'E' || a == 'e') {
  13. cout << 2;
  14. } else if (a == 'I' || a == 'i') {
  15. cout << 3;
  16. } else if (a == 'O' || a == 'o') {
  17. cout << 4;
  18. } else if (a == 'U' || a == 'u') {
  19. cout << 5;
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 5328KB
stdin
e
stdout
e �
2