-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1049.c
More file actions
35 lines (25 loc) · 727 Bytes
/
1049.c
File metadata and controls
35 lines (25 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
#include <stdio.h>
int main(){
char vert[20], tipo[20], classe[20];
scanf("%s %s %s", &vert, &tipo, &classe);
if(vert[0] == 'v'){
if(tipo[0] == 'a'){
if(classe[0] == 'c') printf("aguia\n");
else printf("pomba\n");
}
else if(tipo[0] == 'm'){
if(classe[0] == 'o') printf("homem\n");
else printf("vaca\n");
}
}else if(vert[0] == 'i'){
if(tipo[0] == 'i'){
if(classe[2] == 'm') printf("pulga\n");
else printf("lagarta\n");
}
else if(tipo[0] == 'a'){
if(classe[0] == 'h') printf("sanguessuga\n");
else printf("minhoca\n");
}
}
return 0;
}