Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int Vocale(char ch)
- {
- if(ch == 'a'|| ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')return 1;
- if(ch > 'a' && ch <= 'z')return 0;
- }
- char s[101];
- int main()
- {
- cin.getline(s, 266);
- int i;
- i = 0;
- while(s[i] != 0 && s[i] == 'i')
- i++;
- if(s[i] == 0)cout << "NU";
- else
- {
- i = 0;
- while(s[i] != 0 && (Vocale(s[i]) == 0 || s[i] == 'i'))
- i++;
- if(s[i] == 0)cout << "DA";
- else cout << "NU";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement