Problem
I
Adding add-on with a simple calculator
Problem Statement
JOHN is a novice
programmer, developed an online calculator. After developing this calculator he
sends this program to his friend JONY. When JONY goes to test this program he
found that, this calculator can’t add floating value of inputs rather only
integer values. JONY have a good concept about the conversion technique from
floating point to integer. He then added a part of a program that converts the
floating point value into integer.
Input
The input file will contain
a single floating point number N (0.0 <= N <= last digit of floating
point range) . A negative number terminates the input.
Output
An integer number
dropping the decimal point. Each line should contain only one output integer
without any leading or trailing space.
Sample Input:
365.45
365.4574
346.9834
-1
Sample Output:
365.45
3654574
3469834
No comments:
Post a Comment