static void Main(string[] args) { Console.WriteLine("Введите 3 числа: "); int a = Convert.ToInt32(Console.ReadLine()); int b = Convert.ToInt32(Console.ReadLine()); int c = Convert.ToInt32(Console.ReadLine()); int[] arr = new int[3] { a, b, c }; int[] result = MyBranching.Increase(arr); for (int i = 0; i < result.Length; i++) { Console.Write($"{result[i]} "); } }
public static void Increase(int[] arr, int[] expected) { int[] actual = MyBranching.Increase(arr); Assert.AreEqual(expected, actual); }