Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel.Design;
- using System.Globalization;
- using System.Reflection;
- using System.Security.Cryptography;
- namespace SomeExcercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- int time = int.Parse(Console.ReadLine());
- string day = Console.ReadLine();
- if (time > 10 && time < 18)
- {
- switch (day)
- {
- case "Monday":
- case "Tuesday":
- case "Wednesday":
- case "Thursday":
- case "Friday":
- Console.WriteLine("open");
- break;
- case "Saturday":
- case "Sunday":
- Console.WriteLine("closed");
- break;
- }
- }
- else if (time < 0 || time > 24)
- {
- }
- else
- {
- Console.WriteLine("closed");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment