var a : integer;
begin
repeat
write('введите 3-х значное число: ');
readln(a);
until (a > 99) and (a < 1000);
if (((a div 100) mod 2) > 0) and ((a div 100) < ((a mod 100) div 10)) then writeln(a div 100 + (a mod 100) div 10 + a mod 10);
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var a : integer;
begin
repeat
write('введите 3-х значное число: ');
readln(a);
until (a > 99) and (a < 1000);
if (((a div 100) mod 2) > 0) and ((a div 100) < ((a mod 100) div 10)) then writeln(a div 100 + (a mod 100) div 10 + a mod 10);
end.