7. Working Hours (Short Solution)
Ivan Ivanov
Posted on January 20, 2023
using System;
namespace WorkingHours
{
class Program
{
static void Main(string[] args)
{
int hour = int.Parse(Console.ReadLine());
string weekDay = Console.ReadLine();
if ((hour >= 10 && hour <= 18) && weekDay != "Sunday")
{
Console.WriteLine("open");
}
else
{
Console.WriteLine("closed");
}
}
}
}
💖 💪 🙅 🚩
Ivan Ivanov
Posted on January 20, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.