-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path300_Pentavocálicas.cpp
44 lines (41 loc) · 998 Bytes
/
300_Pentavocálicas.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Usuario de Acepta el reto: jjjjjjjp022
#include <iostream>
#include <cmath>
using namespace std;
typedef bool tVocales[5];
int main()
{
int casos;
cin >> casos;
for (int i = 0; i < casos; i++)
{
string palabra;
tVocales vocal = { false };
cin >> palabra;
for (int j = 0; j < palabra.size(); j++)
{
switch (palabra[j])
{
case 'a': vocal[0] = true;
break;
case 'e': vocal[1] = true;
break;
case 'i': vocal[2] = true;
break;
case 'o': vocal[3] = true;
break;
case 'u': vocal[4] = true;
break;
}
}
if (vocal[0] == true && vocal [1] == true && vocal[2] == true && vocal[3] == true && vocal[4] == true)
{
cout << "SI" << endl;
}
else
{
cout << "NO" << endl;
}
}
return 0;
}