Program p1; var a:integer; begin a:=random(89)+10; writeln('a= ',a); writeln('Summa tsifr= ',a mod 10+a div 10); writeln('4islo naoborot= ',a mod 10, a div 10); end.
program p2; var a:integer; begin a:=random(899)+100; writeln('a= ',a); if (a mod 10)=((a div 100) mod 10) then writeln('POLIMER') else writeln('NE POLIMER'); end.
var a:integer;
begin
a:=random(89)+10;
writeln('a= ',a);
writeln('Summa tsifr= ',a mod 10+a div 10);
writeln('4islo naoborot= ',a mod 10, a div 10);
end.
program p2;
var a:integer;
begin
a:=random(899)+100;
writeln('a= ',a);
if (a mod 10)=((a div 100) mod 10) then writeln('POLIMER')
else writeln('NE POLIMER');
end.