Question: Write a program to let the user enter an integer, then count the number of digits in that number. Hint: use a do while
Write a program to let the user enter an integer, then count the number of digits in that number. Hint: use a do while loop to repeatedly divides the number by 10, stopping when it reaches 0. Enter an integer: 12345 The number of digits is: 5
Step by Step Solution
There are 3 Steps involved in it
include using namespace std int main Variable declaration in... View full answer
Get step-by-step solutions from verified subject matter experts
