Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- char e1[20], e2[20], e3[20];
- scanf("%s %s %s", e1, e2, e3);
- if(strcmp(e1,"vertebrado")==0)
- {
- if(strcmp(e2,"ave")==0)
- {
- if(strcmp(e3,"carnivoro")==0)
- printf("aguia\n");
- else if(strcmp(e3,"onivoro")==0)
- printf("pomba\n");
- }
- else if(strcmp(e2,"mamifero")==0)
- {
- if(strcmp(e3,"onivoro")==0)
- printf("homem\n");
- else if(strcmp(e3,"herbivoro")==0)
- printf("vaca\n");
- }
- }
- else if(strcmp(e1,"invertebrado")==0)
- {
- if(strcmp(e2,"inseto")==0)
- {
- if(strcmp(e3,"hematofogo")==0)
- printf("pulga\n");
- else if(strcmp(e3,"herbivoro")==0)
- printf("lagarta\n");
- }
- else if(strcmp(e2,"anelideo")==0)
- {
- if(strcmp(e3,"hematofogo")==0)
- printf("sanguessuga\n");
- else if(strcmp(e3,"onivoro")==0)
- printf("minhoca\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement