Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main(){
- char s[150], vocale[] = "aeou";
- int ni = 0;
- cin.getline(s, 250);
- bool ok = true;
- for(int i = 0; i < strlen(s); i++){
- if(strchr(vocale, s[i]))
- ok = false;
- if(s[i] == 'i')
- ni++;
- }
- if(ni == strlen(s))
- ok = false;
- if(ok == false)
- cout << "NU";
- else
- cout << "DA";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement