Question: Please write a code in C++ thank you 4. Write a program that calculates how many digits a number contains. Assume that the number has
4. Write a program that calculates how many digits a number contains. Assume that the number has no more than four digits. [Hint: Use if statements to test the number.] [8 points For example: Enter a number: 526 The number 526 has 3 digits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
