Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- ios_base::sync_with_stdio(false);
- int i, s = 0;
- string zbor;
- cin >> zbor;
- for (i = 0; i < zbor.length() - 1; i++){
- 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'){
- s++;
- }
- }
- cout << s << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement