for i in range(10, 100):
g = str(i)
if int(g[0]) < int(g[1]):
print(i)
Вывод:
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
34
35
36
37
38
39
45
46
47
48
49
56
57
58
59
67
68
69
78
79
89
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
for i in range(10, 100):
g = str(i)
if int(g[0]) < int(g[1]):
print(i)
Вывод:
12
13
14
15
16
17
18
19
23
24
25
26
27
28
29
34
35
36
37
38
39
45
46
47
48
49
56
57
58
59
67
68
69
78
79
89