-
Notifications
You must be signed in to change notification settings - Fork 0
/
1049.c
44 lines (42 loc) · 1.1 KB
/
1049.c
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
#include <stdio.h>
#include <string.h>
int main(void) {
char search[20];
scanf("%s", search);
if (!strcmp(search, "vertebrado")) {
scanf("%s", search);
if (!strcmp(search, "ave")) {
scanf("%s", search);
if (!strcmp (search, "carnivoro")) {
printf("aguia\n");
} else {
printf("pomba\n");
}
} else {
scanf("%s", search);
if (!strcmp(search, "herbivoro")) {
printf("vaca\n");
} else {
printf("homem\n");
}
}
} else {
scanf("%s", search);
if (!strcmp(search, "inseto")) {
scanf("%s", search);
if (!strcmp(search, "hematofago")) {
printf("pulga\n");
} else {
printf("lagarta\n");
}
} else {
scanf("%s", search);
if (!strcmp(search, "hematofago")) {
printf("sanguessuga\n");
} else {
printf("minhoca\n");
}
}
}
return 0;
}