Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Se da un cuvant format din litere mici. Sa se afiseza pe o linie a ecranului toate vocalele
- /// iar pe linia urmatoare toate consoanele
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[256];
- int main()
- {
- cin >> x;
- for(char it : x)
- {
- if(strchr("aeiou",it) && it != '\0')
- cout << it;
- }
- cout << '\n';
- for(char it : x)
- {
- if(!strchr("aeiou",it) && it != '\0')
- cout << it;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement