-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9 Task.cs
More file actions
41 lines (36 loc) · 1.01 KB
/
9 Task.cs
File metadata and controls
41 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
public class MainClass
{
public static void Main()
{
int dayNumber = Convert.ToInt32(Console.ReadLine());
int theDay = dayNumber % 7;
switch (theDay)
{
case 1:
Console.WriteLine("Понедельник");
break;
case 2:
Console.WriteLine("Вторник");
break;
case 3:
Console.WriteLine("Среда");
break;
case 4:
Console.WriteLine("Четверг");
break;
case 5:
Console.WriteLine("Пятница");
break;
case 6:
Console.WriteLine("Суббота");
break;
case 0:
Console.WriteLine("Воскресенье");
break;
default:
Console.WriteLine("Такого дня не существует");
break;
}
}
}