# URI Online Judge Solution 1049 - Animal | URI 1049 Solution in C,C++,Python

## URI Online Judge Solution 1049 - Animal | URI 1049 Solution in C,C++,Python

In this problem, your job is to read three Portuguese words. These words define an animal according to the table below, from left to right. After, print the chosen animal defined by these three words. URI 1049 Animal Solution in C,C++,Python

## Input

The input contains 3 words, one by line, that will be used to identify the animal, according to the above table, with all letters in lowercase.

## Output

Print the animal name according to the given input.

 Input Samples Output Samples vertebradomamiferoonivoro homem

### Demonstration:

It's a not a hard problem.You just have to check the conditions by using if-else statement to find the combination of the table given.Then you have to print those values according to the problem's statement.

N.B: Don't copy paste the code as same. Just try to understand it and try yourself. It would be better for you.

URI Problem 1049 Solution in C :

 URI Online Judge 1049 Solve  in C :
```#include <stdio.h>

int main()
{
char a;
char b;
char c;
scanf("%s", a);
scanf("%s", b);
scanf("%s", c);

if (a == 'v' && b == 'a' && c == 'c')printf("aguia\n");
if (a == 'v' && b == 'a' && c == 'o')printf("pomba\n");
if (a == 'v' && b == 'm' && c == 'o')printf("homem\n");
if (a == 'v' && b == 'm' && c == 'h')printf("vaca\n");
if (a == 'i' && b == 'i' && c == 'm')printf("pulga\n");
if (a == 'i' && b == 'i' && c == 'r')printf("lagarta\n");
if (a == 'i' && b == 'a' && c == 'h')printf("sanguessuga\n");
if (a == 'i' && b == 'a' && c == 'o')printf("minhoca\n");

return 0;
}
```