Содержание курса
Обязательная задача
Следующее и предыдущее
Пример
Ввод
1534
Вывод
The next number for the number 1534 is 1535. The previous number for the number 1534 is 1533.
Все тесты задачи 3
Тест 1СвернутьПоказать
Ввод
1534
Ожидаемый вывод
The next number for the number 1534 is 1535. The previous number for the number 1534 is 1533.
Тест 2СвернутьПоказать
Ввод
0
Ожидаемый вывод
The next number for the number 0 is 1. The previous number for the number 0 is -1.
Тест 3СвернутьПоказать
Ввод
2718281828904590
Ожидаемый вывод
The next number for the number 2718281828904590 is 2718281828904591. The previous number for the number 2718281828904590 is 2718281828904589.