-
Notifications
You must be signed in to change notification settings - Fork 0
/
1049.cpp
52 lines (46 loc) · 885 Bytes
/
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
#include<conio.h>
#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
string x,y,z;
cin>>x>>y>>z;
if (x=="vertebrado")
{
if (y=="ave")
{
if(z=="carnivoro")
{
printf("aguia\n");
}else if (z=="onivoro"){
printf("pomba\n");
}
}else if(y=="mamifero")
{
if (z=="onivoro"){
printf("homem\n");
} else if (z=="herbivoro"){
printf("vaca\n");
}
}
}
else if(x=="invertebrado")
{
if (y=="inseto"){
if (z=="hematofago")
{
printf("pulga\n");
}else if (z=="herbivoro")
{
printf("lagarta\n");
}
}else if (y=="anelido")
{
}else if (z=="hematofago"){
printf("sanguessuga\n");
}else if (z=="onivoro"){
printf("minhoca\n");
}
}
getch();
}