-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLesson2.cs
More file actions
44 lines (36 loc) · 934 Bytes
/
Copy pathLesson2.cs
File metadata and controls
44 lines (36 loc) · 934 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Tasl5
// Console.WriteLine("Введите число");
// int num = Convert.ToInt32(Console.ReadLine());
// int num1 = num / 10;
// int num2 = num1 % 10;
// Console.WriteLine(num2);
// Tasl6
// Console.WriteLine("Введите число");
// int num = Convert.ToInt32(Console.ReadLine());
// while(num > 1000)
// {
// num = num/10;
// }
// if((num>99) && (num <1000))
// {
// num = num % 10;
// Console.WriteLine(num);
// }
// else
// {
// Console.WriteLine("3 числа нет");
// }
// Tasl7
// Console.WriteLine("Введите число");
// int num = Convert.ToInt32(Console.ReadLine());
// if (num<6)
// {
// Console.WriteLine("Будние дни");
// }
// else if ((num > 5) && ( num < 8))
// {
// Console.WriteLine("Выходные дни");
// }
// else {
// Console.WriteLine("Такого дня нет");
// }