Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
2∧3+1 = 8+1 = 9
Не за что)
крик
var a,b: integer;
is7: boolean;
begin
readln(a);
b: =0;
is7: =false;
while a < > 0 do
b: =b+a mod 10;
if a mod 10 = 7 then
is7: =true;
a: =a div 10;
end;
wrtieln('сумма цифр: ', b);
write('цифра 7 ');
if is7 then writeln('есть') else writeln('нет');
readln;
end.
Популярные вопросы