Напишите программу, которая считывает целое число и выводит текст, аналогичный приведенному в примере. Пробелы, знаки препинания, заглавные и строчные буквы важны!
Входные данные
Вводится целое число.
Выходные данные
Выведите ответ на задачу.
Пример
Входные данные:
179
Выходные данные:
The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .
Ответы
Ответ дал:
10
x = int(input())
print('The next number for the number', x, 'is', x + 1, '.')
print('The previous number for the number', x, 'is', x - 1, '.')
Ввод:
179
Вывод:
The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .
itsgest:
как
The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .
Your code output:
The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .
print('The next number for the number', x, 'is', x + 1, '.')
print('The previous number for the number', x, 'is', x - 1, '.')
x = 179
print('The next number for the number', x, 'is', x + 1, '.')
print('The previous number for the number', x, 'is', x - 1, '.')
Вас заинтересует
1 год назад
1 год назад
2 года назад
7 лет назад
7 лет назад
9 лет назад