program PrintDigits;
varnum, digit: integer;
beginwriteln('Введите число:');readln(num);
while num > 0 dobegindigit := num mod 10;writeln(digit);num := num div 10;end;end.
program PrintDigits;
var
num, digit: integer;
begin
writeln('Введите число:');
readln(num);
while num > 0 do
begin
digit := num mod 10;
writeln(digit);
num := num div 10;
end;
end.