Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace ConsoleApp210
- {
- class Program
- {
- static void Main()
- {
- int num = int.Parse(Console.ReadLine());
- string[] daysOfWeek = new string[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
- if(num >= 1 && num <= 7)
- {
- Console.Write(daysOfWeek[num - 1]);
- }
- else
- {
- Console.Write("Invalid day!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement