Question: ) Write a function int Nth Digit(int Number,int dDigitSpot) that returns the digit at the digit location. Assume there exists a function int NumoDigits(int NumOfDigits)
) Write a function int Nth Digit(int Number,int dDigitSpot) that returns the digit at the digit location. Assume there exists a function int NumoDigits(int NumOfDigits) that returns the total number of digits in a number. If there is nothing there, then return -1 NthDigit(124,1)1 NthDigit(1242) ? 2 NthDigit(124,5) 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
