Program.cs 494 B

12345678910111213141516171819
  1. using System;
  2. class Program
  3. {
  4. static void Main()
  5. {
  6. int a = int.Parse(Console.ReadLine());
  7. int b = int.Parse(Console.ReadLine());
  8. int c = int.Parse(Console.ReadLine());
  9. int min = Math.Min(Math.Min(a, b), c);
  10. int max = Math.Max(Math.Max(a, b), c);
  11. int sum = min + max;
  12. Console.WriteLine($"Минимум: {min}");
  13. Console.WriteLine($"Максимум: {max}");
  14. Console.WriteLine($"Сумма: {sum}");
  15. }
  16. }