Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace DNASequence
- {
- public class Sequence
- {
- public static void Main()
- {
- int matchSum = int.Parse(Console.ReadLine());
- for(int i =1; i<=4; i++)
- {
- for (int j=1; j<=4; j++)
- {
- for (int k=1; k<=4; k++)
- {
- string wrap = i + j + k >= matchSum ? "O" : "X";
- Console.Write($"{wrap}{i}{j}{k}{wrap} "
- .Replace("1","A")
- .Replace("2","C")
- .Replace("3","G")
- .Replace("4","T"));
- }
- Console.WriteLine();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement