program tz;vara,b:integer;i:byte;beginwriteln('vvedite 4x znachnoe chislo');readln(a);b:=1;for i:=1 to 4 do begin b:=b*(a mod 10); a:=a div 10end;if (b mod 4) = 0 then writeln(b,' Kratno 4')else writeln(b,' Ne kratno 4');readln;end.
program tz;
var
a,b:integer;
i:byte;
begin
writeln('vvedite 4x znachnoe chislo');
readln(a);
b:=1;
for i:=1 to 4 do begin
b:=b*(a mod 10);
a:=a div 10
end;
if (b mod 4) = 0 then
writeln(b,' Kratno 4')
else
writeln(b,' Ne kratno 4');
readln;
end.