Josif_tepe

Untitled

Jan 31st, 2026
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. int main() {
  5.     char niza[205];
  6.     cin >> niza;
  7.    
  8.     int brojac = 0;
  9.     for(int i = 0; i < strlen(niza) - 1; i++) {
  10.         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') {
  11.             brojac++;
  12.         }
  13.     }
  14.    
  15.     cout << brojac << endl;
  16.     return 0;
  17. }
  18.  
  19.  
Advertisement
Add Comment
Please, Sign In to add comment