Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. { static void Main(String[] args)
  2. {
  3. string[] days = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Sathurday", "Sunday" };
  4. int day = int.Parse(Console.ReadLine());
  5. if (day >= 1 && day <= 7)
  6. {
  7. Console.WriteLine(days[day - 1]);
  8. }
  9. else
  10. {
  11. Console.WriteLine("Invalid day!");
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement