Advertisement
Josif_tepe

Untitled

Feb 14th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     ios_base::sync_with_stdio(false);
  7.      
  8.     int i, s = 0;
  9.     string zbor;
  10.     cin >> zbor;
  11.  
  12.     for (i = 0; i < zbor.length() - 1; i++){
  13.         if (zbor[i] != 'a' && zbor[i] != 'e' && zbor[i] != 'i' && zbor[i] != 'o' && zbor[i] != 'u' && zbor[i+1] != 'a' && zbor[i+1] != 'e' && zbor[i+1] != 'i' && zbor[i+1] != 'o' && zbor[i+1] != 'u'){
  14.             s++;
  15.         }
  16.     }
  17.  
  18.     cout << s << endl;
  19.  
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement