Переведите, пожалуйста, из Паскаля в Кумир


uses crt;
var
i:integer;
mas: array [1..10] of integer;
BEGIN
write('Ishodniy massiv:');
for i:=1 to 10 do
begin
mas[i]:=random(900)+101;
write(mas[i]:4);
end;
writeln;

write('Chisla kratnie 3 i 5:');
for i:=1 to 10 do
if ((mas[i])mod(3)=0) and ((mas[i])mod(5)=0) then {изменилось условие вместо or стало and}
write(mas[i]:4);
END.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.