Skip to content
C

Math Module Practice

Easypython

Use Python's built-in math module to find the floor, ceiling, and square root of a number.

What the problem means: the math module (part of the Standard Library, no installation needed) provides ready-made functions for exactly this kind of calculation instead of you writing the logic yourself.

Approach: import math, then use math.floor(), math.ceil(), and math.sqrt() on the given number.

Input: One line: a number (may include a decimal point).

Output: Three lines: Floor: <value> Ceiling: <value> Square Root: <value, 2 decimal places>

Input (stdin)

Output

Run your code to see output here...