[Tutor] Printing Complimentary strand of the DNA sequence:
Mihir Kharate
kharatemihir at gmail.com
Fri Oct 4 06:39:34 EDT 2019
Hi!
I wrote this code to print out the complimentary strand of the DNA
sequence that is prompted to input.
(In a DNA sequence, the base 'A' binds to the base 'T' and 'C' binds
to 'G'. These base letters are compliments of each other). So the
expected output for a 'ATTGC' should be 'TAACG'
The code I have written does the job, but instead of printing the code
in a line, it prints every letter on a new line and it does this two
times.
This is the pastebin site link to my code: (
https://commie.io/#yCvdFhuj ). Please give me some insight on why it
is doing this and how to fix this for expected output.
Thank you!
~ Mihir
More information about the Tutor
mailing list