Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include<string.h>
- int main()
- {
- char A[1000];
- int i,j;
- gets(A);
- int len = strlen(A);
- strrev(A);
- for( i=0;i<len;i++)
- {
- if(A[i] == 'A'){
- A[i]='T';
- }
- else if(A[i] == 'C'){
- A[i]='G';
- }
- else if(A[i] == 'G'){
- A[i]='C';
- }
- else if(A[i] == 'T'){
- A[i]='A';
- }
- }
- printf("%s \n", A);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement