Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <math.h>
  4.  
  5. #define _CRT_SECURE_NO_WARNINGS
  6.  
  7. using namespace std;
  8. int main() {
  9. setlocale(LC_ALL, "russian");
  10.  
  11. char tmp[101];
  12. scanf("%100s", tmp);
  13. string word = tmp;
  14.  
  15.  
  16. string newword;
  17.  
  18. for (int i = 0; i < word.length(); i++) {
  19. switch (word[i]) {
  20. case 'a':
  21. break;
  22. case 'e':
  23. break;
  24. case 'i':
  25. break;
  26. case 'o':
  27. break;
  28. case 'u':
  29. break;
  30. case 'y':
  31. break;
  32. default:
  33. newword += word[i];
  34. newword += word[i];
  35. }
  36. }
  37.  
  38. printf("%s", newword.c_str());
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement