Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- bool dali_e_soglaska(char c) {
- if(c != 'a' and c != 'e' and c != 'i' and c != 'o' and c != 'u') {
- return true;
- }
- return false;
- }
- int main()
- {
- string zbor;
- cin>>zbor;
- int tezina=0;
- /// stvarnost
- for(int i=0;i<zbor.size()-1;i++){
- if(dali_e_soglaska(zbor[i]) and dali_e_soglaska(zbor[i + 1])) {
- tezina += 1;
- }
- }
- cout<<tezina<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment