Computer Science, asked by divyanshi787, 2 months ago

C)What will be the output by the following code lines:- [6]

a)Math.floor(4.5);

b)Math.ceil(7.8);.. ​

Answers

Answered by sambhavgautam6
3

Answer:

(a)4

(b)8

floor() and ceil() function Python Syntax: import math math. floor(x) Parameter: x-numeric expression. Returns: largest integer not greater than x. The method ceil() in Python returns ceiling value of x i.e., the smallest integer not less than x.

Similar questions