Division Problem

4

1 votes
Problem

What is the nth digit after decimal

eg 22/7 : 2nd digit after decimal is 4 and 30th digit after decimal is 7

10/3 :234th digit after decimal is 3

Input/Output Format:

in the first line input the N th place and in next line the numerator and then in next line input the denominator , and display the nth digit after decimal.

Sample input:

2

22

7

sample output:

4

Explaination:

n=2

numerator=22

denominator=7

22/7=3.14 so second digit is 4

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?