Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. namespace Den_ot_sedmicata
  2. {
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. int num = int.Parse(Console.ReadLine());
  8. if (num == 1)
  9. {
  10. Console.WriteLine("Понеделник");
  11. }
  12. else if (num == 2)
  13. {
  14. Console.WriteLine("Вторник");
  15. }
  16. else if (num == 3)
  17. {
  18. Console.WriteLine("Сряда");
  19. }
  20. else if (num == 4)
  21. {
  22. Console.WriteLine("Четвъртък");
  23. }
  24. else if (num == 5)
  25. {
  26. Console.WriteLine("Петък");
  27. }
  28. else if (num == 6)
  29. {
  30. Console.WriteLine("Събота");
  31. }
  32. else if (num == 7)
  33. {
  34. Console.WriteLine("Неделя");
  35. }
  36. else
  37. {
  38. Console.WriteLine("Error");
  39. }
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement