forked from llangeani/LP-2020-1oS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1049.c
More file actions
34 lines (30 loc) · 727 Bytes
/
1049.c
File metadata and controls
34 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
#include <stdio.h>
int main() {
char e1[13], e2[9], e3[11];
scanf("%s %s %s", e1, e2, e3);
if (e1[0] == 'v')
{
if (e2[0] == 'a')
if (e3[0] == 'c')
printf("aguia\n");
else
printf("pomba\n");
else
if (e3[0] == 'o')
printf("homem\n");
else
printf("vaca\n");
}
else
if (e2[0] == 'i')
if (e3[2] == 'm')
printf("pulga\n");
else
printf("lagarta\n");
else
if (e3[0] == 'h')
printf("sanguessuga\n");
else
printf("minhoca\n");
return 0;
}