Given a positive integer n, print first k digits after point in value of 1/n. Your program should avoid overflow and floating point arithmetic.
First line of input contains the number of test cases.The only line of each test case contains 2 spaced integers n and k.
Output the first k digits.
1 <= T <= 100
1 <= N <= 10000
1 <= K <= 10000
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.