ПОМООООГИТЕЕ СРОЧНО!!!!!!!!!!!!!!!!!!!!!!!!!
Дано вещественное число a. Выведите следующее за ним целое число.
Пример:
Приложения:

Ответы на вопрос
Ответил vimmortal2
0
Ответ:
1 вариант:
from math import ceil
print(ceil(float(input())))
2 вариант:
print(int(float(input())) + 1)
3 вариант:
from math import floor
print(floor(float(input()) + 1))
4 вариант:
n = float(input())
print(int(n) + (not n.is_integer()))
Новые вопросы
Алгебра,
2 года назад