Python:
k = 0
b = 0
for i in range(10):
a = int(input())
if a < b: k += 1
b = a
print("возрастает") if k == 0 else print("не возрастает")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
k = 0
b = 0
for i in range(10):
a = int(input())
if a < b: k += 1
b = a
print("возрастает") if k == 0 else print("не возрастает")