import math
x,y = map(float,input().split()) # Ввод в одну строку через пробел 2 чисел
print("round(",x,")"," = ",round(x),sep="")
print("round(",y,")"," = ",round(y),sep="")
print("ceil(",x,")"," = ",math.ceil(x),sep="")
print("ceil(",y,")"," = ",math.ceil(y),sep="")
print("floor(",x,")"," = ",math.floor(x),sep="")
print("floor(",y,")"," = ",math.floor(y),sep="")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import math
x,y = map(float,input().split()) # Ввод в одну строку через пробел 2 чисел
print("round(",x,")"," = ",round(x),sep="")
print("round(",y,")"," = ",round(y),sep="")
print("ceil(",x,")"," = ",math.ceil(x),sep="")
print("ceil(",y,")"," = ",math.ceil(y),sep="")
print("floor(",x,")"," = ",math.floor(x),sep="")
print("floor(",y,")"," = ",math.floor(y),sep="")