public static void Main()
Console.WriteLine("Is it a weekend or weekday?");
string day = Console.ReadLine();
Console.WriteLine("Enter the temp between 20 & 45");
int temperature = Convert.ToInt32(Console.ReadLine());
while ( temperature < 20 || temperature > 45)
Console.WriteLine("Enter the temp between 20 & 45");
temperature = Convert.ToInt32(Console.ReadLine());
if ( temperature >= 20 && temperature<= 30)
Console.WriteLine("you will sell 200 ice creams");
Console.WriteLine("you will sell 100 ice creams");
else if ( temperature >= 31 && temperature<= 38)
Console.WriteLine("you will sell 300 ice creams");
Console.WriteLine("you will sell 150 ice creams");
else if ( temperature > 38 )
Console.WriteLine("you will sell 240 ice creams");
Console.WriteLine("you will sell 120 ice creams");