Advertisement
koicho

Swtich Days

Jul 2nd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _oftuni2716
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13.  
  14. var day = int.Parse(Console.ReadLine());
  15. switch (day)
  16. {
  17. case 1: Console.WriteLine("Monday"); break;
  18. case 2: Console.WriteLine("Tuesday"); break;
  19. case 3: Console.WriteLine("Wednesday"); break;
  20. case 4: Console.WriteLine("Thursday"); break;
  21. case 5: Console.WriteLine("Saturday"); break;
  22. case 6: Console.WriteLine("Sunday"); break;
  23. default: Console.WriteLine("error"); break;
  24. }
  25.  
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement