Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main()
- {
- string tekst;
- getline(cin,tekst);
- for(int i=0;i<tekst.size();i++)
- {
- if(tekst.at(i)!='h')cout<<tekst.at(i);
- }
- cout<<endl;
- for(int i=0;i<tekst.size();i++)
- {
- if(tekst.at(i)=='a' || tekst.at(i)=='A' || tekst.at(i)=='o' || tekst.at(i)=='O')cout<<tekst.at(i);
- }
- }
- ////////////////////////////////////////////////
- #include <iostream>
- #include <cstring>
- using namespace std;
- int main()
- {
- string tekst;
- getline(cin,tekst);
- for(int i=0;i<tekst.size();i++)
- {
- if(tekst.at(i)==' ')cout<<endl;
- else cout<<tekst.at(i);
- }
- cout<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement