Задача 3 Урок 11
Primary tabs
Решите с помощью цикла while:
Выведите на экран, все нечетные числа, делящиеся на 3 нацело, лежащие в диапазоне от 35 до 117.
program U11Z3; var s:integer; begin s:=35; while (s<=117) do begin if ((s mod 2)<>0) and ((s mod 3)=0) then writeln(s); s:=s+1; end; readln(); end.
- Log in to post comments
- 951 reads