Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace DayOfWeek
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- switch (num)
- {
- case 1:
- Console.WriteLine("Monday");
- break;
- case 2:
- Console.WriteLine("Tuesday");
- break;
- case 3:
- Console.WriteLine("Wednesday");
- break;
- case 4:
- Console.WriteLine("Thursday");
- break;
- case 5:
- Console.WriteLine("Friday");
- break;
- case 6:
- Console.WriteLine("Saturday");
- break;
- case 7:
- Console.WriteLine("Sunday");
- break;
- default:
- Console.WriteLine("Error");
- break;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment