Computer Science, asked by XxYatashixX, 29 days ago

OUTPUT Of Python C.ode

num=float(input("enter a real number :"))
tnum=int(num)
rnum=round(num)
print("number :",num,"_converted to integer in 2 ways as :",tnum," and :",rnum)
rnum2=round(num,3)
print("number",num,"roundedoff to 3 places after decimal is :",rnum2)

Answers

Answered by Anonymous
20

Answer:

After Running The Above Python C.ode in Python Anaconda Software

the Output is given In The Attachment. . .

Attachments:
Answered by Anonymous
0

Answer:

num=float(input("enter a real number :"))

tnum=int(num)

rnum=round(num)

print("number :",num,"_converted to integer in 2 ways as :",tnum," and :",rnum)

rnum2=round(num,3)

print("number",num,"roundedoff to 3 places after decimal is :",rnum2)

Similar questions