On each iteration we cut the last digit of the number using integer division by 10 ( n //= 10 ). In the variable length we count how many times we did that.
確定! 回上一頁