Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace WorkDay
- {
- class Program
- {
- static void Main()
- {
- string day = Console.ReadLine();
- switch (day)
- {
- case "Monday":
- case "Tuesday":
- case "Wednesday":
- case "Thursday":
- case "Friday":
- Console.WriteLine("Working day");
- break;
- case "Saturday":
- case "Sunday":
- Console.WriteLine("Weekend");
- break;
- default:
- Console.WriteLine("Error");
- break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment