Задача 10 Урок 10.1
Primary tabs
Переберите в цикле все числа от 1 до 100, выведите на экран каждое 7-е число.
var i, count:integer;
begin
count:=0;
for i:=1 to 100 do
begin
count:=count+1;
if (count = 7) then
begin
write(i, ' ');
count:=0;
end;
end;
readln();
end.- Log in to post comments
- 587 reads