How to compute the digit of a number innumber theory?
Answers
Answered by
3
To count number of digits divide the given number by 10 till number is greater than 0. For each iteration increment the value of some countvariable. Step by step descriptive logic to count number of digits in given integer using loop. Input a numberfrom user.
Similar questions