We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
We can use math.log() to find the number of digits in a number instead of while loop.
c = log(n) + 1