-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1049.c
More file actions
51 lines (45 loc) · 660 Bytes
/
1049.c
File metadata and controls
51 lines (45 loc) · 660 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
43
44
45
46
47
48
49
50
51
#include <stdio.h>
int main()
{
char l1[20], l2[20], l3[30];
scanf("%s", l1);
scanf("%s", l2);
scanf("%s", l3);
if(l1[0]=='v'){
if(l2[0]== 'a'){
if(l3[0]== 'c'){
printf("aguia\n");
}
else{
printf("pomba\n");
}
}
else if(l2[0]== 'm'){
if(l3[0]== 'o'){
printf("homem\n");
}
else{
printf("vaca\n");
}
}
}
if(l1[0]== 'i'){
if(l2[0]== 'i'){
if(l3[2]== 'm'){
printf("pulga\n");
}
else{
printf("lagarta\n");
}
}
else if(l2[0]== 'a'){
if(l3[0]== 'h'){
printf("sanguessuga\n");
}
else{
printf("minhoca\n");
}
}
}
return 0;
}