fork download
  1. A,B,N = input().split()
  2.  
  3. for i in range(int(N)):
  4. A = (int(A)%int(B))*10
  5. j = A//int(B)
  6. print(j)
Success #stdin #stdout 0.09s 9808KB
stdin
1 3 52812
stdout
3