Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- int main()
- {
- char x[100], y[100], z[100];
- fgets(x,100,stdin);
- fgets(y,100,stdin);
- fgets(z,100,stdin);
- if(x == "vertebrado" && y == "ave" && z == "carnivoro"){
- printf("aguia\n");
- }
- else if(x == "vertebrado" && y == "ave" && z == "onivoro"){
- printf("pomba\n");
- }
- else if(x == "vertebrado" && y == "mamifero" && z == "onivoro"){
- printf("homem\n");
- }
- else if(x == "vertebrado" && y == "mamifero" && z == "herbivoro"){
- printf("vaca\n");
- }
- else if(x == "vertebrado" && y == "ave" && z == "onivoro"){
- printf("pomba\n");
- }
- else if(x == "invertebrado" && y == "inseto" && z == "hematofago"){
- printf("pulga\n");
- }
- else if(x == "invertebrado" && y == "inseto" && z == "herbivoro"){
- printf("lagarta\n");
- }
- else if(x == "invertebrado" && y == "anelideo" && z == "hematofago"){
- printf("sanguessuga\n");
- }
- else if(x == "invertebrado" && y == "anelideo" && z == "onivoro"){
- printf("minhoca\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement