Math, asked by naman5726, 1 year ago

Find number of numbers in any given number count how many ones

Answers

Answered by snehukumari209
0

Program to Count Number of Digits in an Integer. The integer entered by the user is stored in variable n . Then the while loop is iterated until the test expression n != 0 is evaluated to 0 (false). After first iteration, the value of n will be 345 and the count is incremented to 1.

Similar questions