Advertisement
Dani_info

Tema 02.04

Apr 1st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout<<"nr problemei:";
  9.     int pb; cin>>pb;
  10.     switch(pb){
  11.         case 1:{//7/5
  12.             char c[]="ana are mere";
  13.             for (int i=strlen(c); i>=0; i--){
  14.                 if (!strchr("aeiou", c[i])){
  15.                     for (int j=i; j<strlen(c); j++){
  16.                         c[j]=c[j+1];
  17.                     }
  18.                     break;
  19.                 }
  20.             }
  21.             cout<<c;
  22.             break;
  23.         }
  24.     }
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement