The math Module

Lab Python Beginner 10 points

Read a positive number x. Using import math, print on separate lines: math.sqrt(x) rounded to 3 places, math.floor(x), math.ceil(x).

Input

One positive decimal number.

Output

Three lines.

Example

Input

2

Output

1.414
2
2
Sample input available Sample output available
Editor
Python

Hints

Write import math at the top.

floor rounds down, ceil rounds up.

Solution explanation

The math module adds functions such as sqrt, floor, ceil, pi, gcd and more.

Show solution
import math
x = float(input())
print(round(math.sqrt(x), 3))
print(math.floor(x))
print(math.ceil(x))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD