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