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?
Program:
varn, count: integer;
begin
read(n);
count := 0;
while n <> 0 to begin
count += 1;
n := n div 10;
end;
writeln('Number - ', n, ' contains ', count, ' digits');
end.
Выберите правильный ответ, либо введите его в поле ввода
Комментарий учителя