josiftepe

Untitled

Nov 15th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  string zbor;
  8. cin>>zbor;
  9. int tezina=0;
  10. /// stvarnost
  11. for(int i=0;i<zbor.size()-1;i++){
  12.     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' ){
  13.            tezina+=1;
  14.         }
  15.  
  16. }
  17. cout<<tezina<<endl;
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment