-
Notifications
You must be signed in to change notification settings - Fork 38
/
1049.cpp
54 lines (49 loc) · 1.98 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
48
49
50
51
52
53
54
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main(){
char input[80];
char input2[80];
char input3[80];
cin >> input;
cin >> input2;
cin >> input3;
if(!strcmp(input, "vertebrado")){
if(!strcmp(input2, "ave")){
if(!strcmp(input3, "carnivoro")){
cout << "aguia\n";
}
if(!strcmp(input3, "onivoro")){
cout << "pomba\n";
}
}
if(!strcmp(input2, "mamifero")){
if(!strcmp(input3, "onivoro")){
cout << "homem\n";
}
if(!strcmp(input3, "herbivoro")){
cout << "vaca\n";
}
}
}
if(!strcmp(input, "invertebrado")){
if(!strcmp(input2, "inseto")){
if(!strcmp(input3, "hematofago")){
cout << "pulga\n";
}
if(!strcmp(input3, "herbivoro")){
cout << "lagarta\n";
}
}
if(!strcmp(input2, "anelideo")){
if(!strcmp(input3, "hematofago")){
cout << "sanguessuga\n";
}
if(!strcmp(input3, "onivoro")){
cout << "minhoca\n";
}
}
}
return 0;
}