public static void Main()
int firsttempcnt = 0, lasttemp = 0, lastchange = -1;
double maxtemp = double.MinValue, prevtemp = -1;
for (int i = 0; i < 60; i++)
Console.WriteLine($"Enter temperature for minute {i + 1}");
double temp = double.Parse(Console.ReadLine());
if (lasttemp >= 4 && lastchange == -1)
Console.WriteLine($"The highest temperature is:{maxtemp}");
Console.WriteLine($"The first temperature repeated {firsttempcnt} times");