using System.Collections.Generic;
public static void Main()
Console.WriteLine("Въведете температурите...");
List<double> temp = new List<double>();
temp.Add(double.Parse(Console.ReadLine()));
double avg = temp.Average();
Console.WriteLine("\nСредната температура е "+ Math.Round(avg,2)+" градуса");
Console.WriteLine("\nНай-ниската измерена температура е " + min +" градуса");
Console.WriteLine("\nНай-високата измерена температура е " + max+" градуса");
Console.WriteLine("\nТемпературите по възходящ ред: ");
for(int i = 0; i<temp.Count;i++)
Console.Write(temp[i]+" ");
int PolBr=0; int OtrBr=0; int broiNuli=0;
for(int i = 0; i<temp.Count;i++)
else if(temp[i]>0) PolBr++;
Console.WriteLine("\n\nБрой положителни температури: "+PolBr);
Console.WriteLine("\nБрой отрицателни температури: "+OtrBr);
Console.WriteLine("\nВъведете двете нови температури...");
var n = double.Parse(Console.ReadLine());
double m = double.Parse(Console.ReadLine());
Console.WriteLine("\nНовият списък с температури е:");
foreach(double a in temp)
foreach(double a in temp.ToList())
if(a<0){ temp.Remove(a); }
Console.WriteLine("\n\nВсички положителни температури са:");
foreach(double a in temp)
if(a!=0) {Console.Write(a+" ");}