Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Задание_2
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Here:
- Console.WriteLine("Введите номер дня недели");
- int x = Convert.ToInt32(Console.ReadLine());
- switch (x)
- {
- case 1: Console.WriteLine("Понедельник"); goto Here;
- case 2: Console.WriteLine("Вторник"); goto Here;
- case 3: Console.WriteLine("Среда"); goto Here;
- case 4: Console.WriteLine("Четверг"); goto Here;
- case 5: Console.WriteLine("Пятница"); goto Here;
- case 6: Console.WriteLine("Суббота"); goto Here;
- case 7: Console.WriteLine("Воскресенье"); goto Here;
- default: break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment