Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <ctype.h>
- using namespace std;
- int main() {
- char s[1000];
- cin >> s;
- int result = 0;
- for(int i = 0; i < strlen(s) - 1; i++) a{
- if(s[i] == 'a' && s[i + 1] == 'E') {
- result++;
- }
- if(s[i] == 'o' && s[i + 1] == 'Y') {
- result++;
- }
- if(s[i] == 'Q' && s[i + 1] == 'w') {
- result++;
- }
- }
- cout << result << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement