LearnPy Hub
← Data Types & Casting problems
Medium

Whole and Fraction

Read a positive decimal number. Print its whole part (as an int) and its fractional part rounded to 2 decimals.

Input

One positive number.

Output

Two lines.

Sample 1

Input
7.25
Output
7
0.25

Sample 2

Input
3.0
Output
3
0.00
solution.py
Output appears here
Whole and Fraction · Python practice problem · LearnPy Hub