Advertisement
roronoa

adn dna

Sep 8th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. r=(x)=>{if(x=='A')z='T'
  2. if(x=='C')z='G'
  3. if(x=='G')z='C'
  4. if(x=='T')z='A'
  5. return z
  6. }
  7. d=readline()
  8. console.log(d.split``.map(k=>r(k)).join``)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement