Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _07.Working_Hours
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int fullNum = int.Parse(Console.ReadLine());
- string day = Console.ReadLine();
- if (day == "Monday"|| day == "Tuesday" || day == "Wednesday" || day == "Thursday" || day == "Friday" || day == "Saturday" || day!="Sunday")
- {
- if (fullNum >= 10 && fullNum <= 18)
- {
- Console.WriteLine("open");
- }
- else
- {
- Console.WriteLine("closed");
- }
- }
- else
- {
- Console.WriteLine("closed");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement