Given a positive floating point number n, the task is to find the smallest integer k, such that when we multiply k with n, we get a natural number.
Input : 30.25
Output : 4
30.25 * 4 = 321, there is no number less than 4 which can convert 30.25 into natural number.
Input : 5.5
Output : 2
5.5 * 2 = 11, there is no number less than 2 which can convert 5.5 into natural number.
The first line of input contains an integer T denoting the no of test cases. Then T test cases follow. Each test case contain a decimal number N.
For each test case in a new line print the required result.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.