Составить программу нахождения произведения двух наименьших из трех различных чисел c#

Ответы

Ответ дал: jekayt123
1

Ответ:

Объяснение:

using System;

namespace ConsoleApp2

{

   class Program

   {

       static void Main(string[] args)

       {

           int a = Convert.ToInt32(Console.ReadLine());

           int b = Convert.ToInt32(Console.ReadLine());

           int c = Convert.ToInt32(Console.ReadLine());

           int x = Math.Min(a * b, (Math.Min(b, c) * Math.Min(a, c)));

           Console.WriteLine(x);

       }

   }

}

Вас заинтересует