Предмет: Информатика, автор: laptevplaton

Напишите программу, которая считывает целое число и выводит текст, аналогичный приведенному в примере. Пробелы, знаки препинания, заглавные и строчные буквы важны!

Входные данные

Вводится целое число.

Выходные данные

Выведите ответ на задачу.

Пример

Входные данные:

179

Выходные данные:

The next number for the number 179 is 180 .
The previous number for the number 179 is 178 .

Ответы

Автор ответа: itsgest
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: как
itsgest: Correct output:
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 .
itsgest: один в в один
laptevplaton: А у тебя нету других вариантов?
itsgest: в ошибке еще написано "Test input: 179"
itsgest: мне кажется что комп должен сам ввести инпут
itsgest: напиши
itsgest: 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, '.')
itsgest: а не
x = 179
print('The next number for the number', x, 'is', x + 1, '.')
print('The previous number for the number', x, 'is', x - 1, '.')
laptevplaton: Все правильно! Спасибо огромное!
Интересные вопросы
Предмет: Русский язык, автор: 20258
Предмет: Английский язык, автор: Ааааа111111111