Counting Digits in a Number

# Introduction In this lab, you need to create a program that counts the number of digits in an integer by using a while loop to remove the last digit from the number in each iteration and increase the count by 1.

|60 : 00

Click the virtual machine below to start practicing