Advertisement
JayaAhmed

Transcribing DNA into RNA

Dec 8th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. int main()
  4. {
  5.     int i,len;
  6.     char s[1001];
  7.  
  8.     scanf("%s",s);
  9.     len=strlen(s);
  10.  
  11.     for(i=0; i<len; i++)
  12.     {
  13.         if(s[i]=='T')
  14.             s[i]='U';
  15.     }
  16.  
  17.     printf("%s\n",s);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement