public override string Solve(AdnReader Reader) { string Revc = ""; while (Reader.CanRead()) { char c = Reader.ReadChar(); switch (c) { case 'A': Revc = 'T' + Revc; continue; case 'C': Revc = 'G' + Revc; continue; case 'G': Revc = 'C' + Revc; continue; case 'T': Revc = 'A' + Revc; continue; } } return(Revc); }
public override string Solve(AdnReader Reader) { int A, G, C, T; A = 0; G = 0; C = 0; T = 0; while (Reader.CanRead()) { char c = Reader.ReadChar(); switch (c) { case 'A': A++; continue; case 'C': C++; continue; case 'G': G++; continue; case 'T': T++; continue; } } return("" + A + " " + C + " " + " " + G + " " + T); }
public override string Solve(AdnReader Reader) { string RNA = ""; while (Reader.CanRead()) { char c = Reader.ReadChar(); switch (c) { case 'T': RNA += 'U'; continue; case 'A': case 'C': case 'G': RNA += c; continue; } } return(RNA); }