Задача 4 Урок 12.1
Primary tabs
Решите с помощью цикла repeat/until:
Выведите на экран, все четные числа, делящиеся на 3 и на 6 нацело , лежащие в диапазоне от 35 до 117.
program U12_1Z4;
var s: integer;
begin
s:=35;
repeat
if ((s mod 6)=0) then
writeln(s);
s:=s+1;
until (s=115);
readln();
end.- Log in to post comments
- 630 reads