Модуль: (Python) Conditional loop statement - WHILE


Задача

7/21

Digits of the number - 2 - answer the question

Задача

Analyze the previous problem and answer the question:
What is the value of the variable n after the program ends? n = int(input()) count = 0 while n != 0: count += 1 n = n // 10 print("Number -", n, "contains", count, "digits")

Выберите правильный ответ, либо введите его в поле ввода

Комментарий учителя