fork download
  1. a,b,c = map(int, input().split())
  2. d = str(a/b)
  3. num = d.split('.')[1]
  4.  
  5. # print(int(num[c-1]))
  6. while True:
  7. try:
  8. nums = int(num[c-1])
  9. print(nums)
  10. break
  11. except IndexError:
  12. print('0')
  13. break
Success #stdin #stdout 0.03s 9716KB
stdin
1 3 52812
stdout
0