Hello, I’m working on this task:
Write a program that asks the user “What is the temperature outside in celsius?” The program then should read the temperature from the console. If it is less than 5, output to the console “Wear a coat”. Otherwise, output “Wear a jacket”.
Here is my code:
namespace Booleans
{
public class WeatherMatchingCloth
{
public static void Main(string[] args)
{
// Write your code here
Console.WriteLine("What is the temperature outside in celsius");
int number = int.Parse(Console.ReadLine());
if ()
{
}
else
{
// Code
}
}
}
}
Can anyone please help me to solve it?