|All-time Popular Problems|
|Construct Tree from Inorder & Preorder|
|Sum of two large numbers|
|Level order traversal in spiral form|
|Spirally traversing a matrix|
|Angle between hour and minute hand|
|Binary Tree to DLL|
|Smallest Positive missing number|
|Height of Binary Tree|
|Largest Number formed from an Array|
Given a fraction. Convert it into a decimal. So simple :P
10/2 = 5
3/5 = 0.6
(The Question Begins Now) :D
If the decimals are repeating recursively, then enclose them inside ().
8/3 = 2.(6)
as 8/3 = 2.66666666....... infinitly.
The first line of input contains an integer T denoting the number of test cases.
The first line of each test case is an integer N denoting the numerator of fraction.
The second line of each test case is an integer D denoting the denominator of fraction.
Print decimal of that fraction in separate line for each test case.
1 ≤ T ≤ 100
1 ≤ N,D ≤ 2000