pascalabcnet/InstallerSamples/!Tutorial/06_ForWhileRepeat/while1.pas
2025-10-14 21:21:47 +03:00

14 lines
230 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Цикл while. Вывод чисел с шагом 3
const n = 60;
begin
Println($'Числа от 1 до {n}, кратные 3');
var x := 3;
while x <= n do
begin
Print(x);
x += 3;
end;
Println;
end.