Дан список чисел. Выведите все элементы списка, которые больше предыдущего элемента.
Python
# Считываем список чисел
numbers = [int(x) for x in input("Введите список чисел через пробел: ").split()]
# Выводим элементы списка, которые больше предыдущего элемента
for i in range(1, len(numbers)):
if numbers[i] > numbers[i - 1]:
print(numbers[i])
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.