Answers for "calc the number of digits"

1

calc the number of digits

int count = 0;
int n = number;

while (n != 0)
{
    n /= 10;
    cout++;
}
Posted by: Guest on June-08-2021

Code answers related to "calc the number of digits"

Browse Popular Code Answers by Language