Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctype.h>
- using namespace std;
- int main() {
- int k;
- cin >> k;
- char niza[1000];
- cin.getline(niza, 1000);
- cin.getline(niza, 1000);
- for(int i = 0; i < strlen(niza); i++) {
- if(isalpha(niza[i])) {
- char c = tolower(niza[i]);
- if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') {
- for(int j = 0; j < k; j++) {
- cout << niza[i];
- }
- }
- else {
- cout << niza[i];
- }
- }
- else {
- cout << niza[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement