-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
42 lines (36 loc) · 924 Bytes
/
Program.cs
File metadata and controls
42 lines (36 loc) · 924 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
// Дни недели
//var res = Convert.ToInt32(Console.ReadLine());
//int[] workday = { 1, 2, 3, 4, 5 };
//int[] weekend = { 6, 7 };
//int indexOne = Array.IndexOf(weekend, res);
//if (indexOne != -1)
//{
// Console.WriteLine("Да");
//}
//int indexTwo = Array.IndexOf(workday, res);
//if (indexTwo != -1)
//{
// Console.WriteLine("Нет");
//}
//Console.ReadKey();
//Вторая цифра трёхзначного числа
//var res = Convert.ToInt32(Console.ReadLine());
//int num = res / 10 % 10;
//Console.WriteLine(num);
//Третья цифра есть или нет
//Console.Write("Введите число: ");
//int num = Convert.ToInt32(Console.ReadLine());
//if (num < 0)
//{
// num *= -1;
//}
//while (num > 999)
//{
// num /= 10;
//}
//if (num < 100)
//{
// Console.WriteLine("Третьей цифры нет");
//}
//else Console.WriteLine(num % 10);
//Console.ReadKey();