-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1049.cpp
47 lines (45 loc) · 1.83 KB
/
1049.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
45
46
47
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
char p[80],p2[80],p3[80];
cin>>p>>p2>>p3;
if(!strcmp(p, "vertebrado")){
if(!strcmp(p2, "ave")){
if(!strcmp(p3, "carnivoro")){
cout << "aguia\n";
}
if(!strcmp(p3, "onivoro")){
cout << "pomba\n";
}
}
if(!strcmp(p2, "mamifero")){
if(!strcmp(p3, "onivoro")){
cout << "homem\n";
}
if(!strcmp(p3, "herbivoro")){
cout << "vaca\n";
}
}
}
if(!strcmp(p, "invertebrado")){
if(!strcmp(p2, "inseto")){
if(!strcmp(p3, "hematofago")){
cout << "pulga\n";
}
if(!strcmp(p3, "herbivoro")){
cout << "lagarta\n";
}
}
if(!strcmp(p2, "anelideo")){
if(!strcmp(p3, "hematofago")){
cout << "sanguessuga\n";
}
if(!strcmp(p3, "onivoro")){
cout << "minhoca\n";
}
}
}
return 0;
}