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