-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
26 lines (24 loc) · 804 Bytes
/
Program.cs
File metadata and controls
26 lines (24 loc) · 804 Bytes
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
//First task//
// System.Console.WriteLine("Введите Трёхзначное число");
// int num = int.Parse(Console.ReadLine());
// num = num / 10;
// num = num % 10;
// System.Console.WriteLine(num);
//Second task
// System.Console.WriteLine("Введите число");
// String num = Console.ReadLine();
// if (num.Length >=3 ){
// System.Console.WriteLine(num[2]);
// }
// else{
// System.Console.WriteLine("Третей цифры нет");
// }
//Third task
System.Console.WriteLine("Введите число, обозначающее номер дня недели");
int num = int.Parse(Console.ReadLine());
if (num >=1 && num <=5){
System.Console.WriteLine("Нет");
}
else if (num >=6 && num <=7){
System.Console.WriteLine("Да");
}