Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <math.h>
- #define _CRT_SECURE_NO_WARNINGS
- using namespace std;
- int main() {
- setlocale(LC_ALL, "russian");
- char tmp[101];
- scanf("%100s", tmp);
- string word = tmp;
- string newword;
- for (int i = 0; i < word.length(); i++) {
- switch (word[i]) {
- case 'a':
- break;
- case 'e':
- break;
- case 'i':
- break;
- case 'o':
- break;
- case 'u':
- break;
- case 'y':
- break;
- default:
- newword += word[i];
- newword += word[i];
- }
- }
- printf("%s", newword.c_str());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement