LearnPy Hub
← Data Types & Casting problems
Easy

Integer and Decimal Parts

Read a positive decimal number. Print its whole part with int(), then the decimal part rounded to 2 decimals.

Input

One number.

Output

Two lines.

Sample 1

Input
3.75
Output
3
0.75

Sample 2

Input
10.0
Output
10
0.00
solution.py
Output appears here
Integer and Decimal Parts · Python practice problem · LearnPy Hub