Advertisement
patryk178

3.35, 3.36

Oct 28th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string tekst;
  8.     getline(cin,tekst);
  9.     for(int i=0;i<tekst.size();i++)
  10.     {
  11.         if(tekst.at(i)!='h')cout<<tekst.at(i);
  12.     }
  13.     cout<<endl;
  14.     for(int i=0;i<tekst.size();i++)
  15.     {
  16.         if(tekst.at(i)=='a' || tekst.at(i)=='A' || tekst.at(i)=='o' || tekst.at(i)=='O')cout<<tekst.at(i);
  17.     }
  18.  
  19. }
  20.  
  21.  
  22. ////////////////////////////////////////////////
  23.  
  24. #include <iostream>
  25. #include <cstring>
  26. using namespace std;
  27.  
  28. int main()
  29. {
  30.     string tekst;
  31.     getline(cin,tekst);
  32.     for(int i=0;i<tekst.size();i++)
  33.     {
  34.         if(tekst.at(i)==' ')cout<<endl;
  35.         else cout<<tekst.at(i);
  36.     }
  37.     cout<<endl;
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement