using System.Collections.Generic;
public static void Main()
List<float>temperatures = new List<float>();
float min = float.MaxValue;
float max = float.MinValue;
for (int i=0 ; i < 5 ; i++) {
Console.Write("Entrez la temperature {0} entre -20 et 40 ", i+1);
saisie = (float.Parse(Console.ReadLine()));
} while(saisie < -20 || saisie > 40);
temperatures.Add(saisie );
min = Math.Min(min, temperatures[i]);
max = Math.Max(max, temperatures[i]);
Console.WriteLine("température minimale : {0} ; température maximale : {1}", min, max);
Console.WriteLine("Hello World");