
Bardin
5 год назад
Составить программу в Паскаль.

ОТВЕТЫ

Панкратий
Oct 24, 2020
pascal
var n, s:integer;
begin
Write('Введите число: ');
ReadLn(n);
while n > 0 do
begin
if (n mod 10 < 6) then s := s + n mod 10;
n := n div 10;
end;
WriteLn(s);
end.
94
Смежные вопросы: