To count the no of digits in an integer?
Answers
Answered by
0
Logic to count number of digits in an integer. First logic is the easiest and is the common to think. It uses loop to count number of digits. To count number of digits divide the given number by 10 till number is greater than 0.
Similar questions