Составить программу нахождения произведения двух наименьших из трех различных чисел 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);
}
}
}
Новые вопросы