static void Main(string[] args)
{
double [] Data = new double[5];
int i = 0;
while (i < 5)
{
Data[i] = double.Parse(Console.ReadLine());
Console.WriteLine();
i++;
}
int x =
Console.WriteLine(Data.Min());
int y =
Console.WriteLine(Data.Max());
Console.WriteLine(x + y);
}
using System;
using System.Linq;
namespace ConsoleApp99
{
internal class Program
{
private static void Main()
{
const int size = 5;
var data = new double[size];
var i = 0;
Console.WriteLine("Enter float or double");
do
{
var parsed = double.TryParse(Console.ReadLine(), out var dp);
if (!parsed) continue;
data[i] = dp;
i++;
} while (i < size);
var x = data.Min();
Console.WriteLine($"min: {x}");
var y = data.Max();
Console.WriteLine($"max: {y}");
Console.WriteLine($"sum x + y: {x + y}");
}
}
}