Kth Value

What iS meant by the kth value?And Any one could help me about how to solve the question given below?


Write a function int digit (int num, int k) that return kth digit of the positive number num. For example, if num is the integer 12435, then the call digit (num, 0) would returns the digit 5, and the call digit (num, 2) would returns the digit 4. Note that digits are numbered from right to left. (0,1,2,3,4…)?
What iS meant by the kth


kth means first or second or third or fourth or fifth etc, whichever digit the user may ask for.
Topic archived. No new replies allowed.