-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1049.cpp
More file actions
42 lines (30 loc) · 727 Bytes
/
Copy path1049.cpp
File metadata and controls
42 lines (30 loc) · 727 Bytes
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
#include <iostream>
#include <string.h>
#define scout(frase) std::cout << frase << "\n"
using namespace std;
int main(int argc, char const *argv[])
{
string p1,p2,p3;
cin >> p1 >> p2 >> p3;
if (p1 == "vertebrado"){
if (p2 == "ave") {
if(p3 == "carnivoro") scout("aguia");
if(p3 == "onivoro") scout("pomba");
}
if (p2 == "mamifero") {
if (p3 == "onivoro") scout("homem");
if (p3 == "herbivoro") scout("vaca");
}
}
if (p1 == "invertebrado"){
if (p2 == "inseto") {
if(p3 == "hematofago") scout("pulga");
if(p3 == "herbivoro") scout("lagarta");
}
if (p2 == "anelideo") {
if (p3 == "hematofago") scout("sanguessuga");
if (p3 == "onivoro") scout("minhoca");
}
}
return 0;
}