πŸ“Š Python
Q. What is the output of the following program?
Code:
from math import *
a = 2.13
b = 3.7777
c = -3.12
print(int(a), floor(b), ceil(c), fabs(c))
  • (A) 2 3 -4 3
  • (B) 2 3 -3 3.12
  • (C) 2 4 -3 3
  • (D) 2 3 -4 3.12
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2 3 -3 3.12

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
290
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
80%
Success Rate