Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main(){
- char dna[3]={'C','A','T'};
- char ca[10]={'C','T','A','C','A','A','C','T','G','G'};
- char co[10]={'T','T','G','C','A','T','A','G','C','C'};
- char ra[10]={'G','G','A','C','A','T','G','C','G','A'};
- int mod,mod2,mod3;
- for(mod=0 ;mod<=9; mod++){
- if (dna[0] == ca[mod] && dna[1] == ca[mod+1] && dna[2] == ca[mod+2])
- printf("\n cachorro");
- }
- for(mod2=0; mod2<=9; mod2++){
- if (dna[0] == co[mod2] && dna[1] == co[mod2+1] && dna[2] == co[mod2+2])
- printf("\n coelho");
- }
- for(mod3=0; mod3<=9; mod3++){
- if (dna[0] == ra[mod3] && dna[1] == ra[mod3+1] && dna[2] == ra[mod3+2])
- printf("\n rato");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement