| 12345678910111213141516171819 |
- using System;
- class Program
- {
- static void Main()
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- int min = Math.Min(Math.Min(a, b), c);
- int max = Math.Max(Math.Max(a, b), c);
- int sum = min + max;
- Console.WriteLine($"Минимум: {min}");
- Console.WriteLine($"Максимум: {max}");
- Console.WriteLine($"Сумма: {sum}");
- }
- }
|