(см. объяснение)
Объяснение:
program task;
var i: integer;
const N=5;
procedure writeOut(i: integer);
begin
if(i<N) then write(', ')
else writeln('.');
end;
begin
if(N<1) then begin writeln('N>0 и целое!'); exit; end;
writeln('ЦИКЛ FOR:');
for i:= 1 to N
do begin
write(i); writeOut(i);
end;
writeln;
writeln('ЦИКЛ WHILE:');
i:= 1;
while(i<N+1)
do begin
write(i); writeOut(i);
i:= i+1;
end;
writeln;
writeln('ЦИКЛ REPEAT:');
i:= 1;
repeat
write(i); writeOut(i);
i:= i+1;
until i=N+1;
end.
begin
for a : = 1 to 4 do
begin
readln ( b) ;
if b > c then c:=b;
end;
end.
var a, b, c: integer;
begin
for b:=1 to 3 do
begin
readln ( a );
if a > 0 then c:= c+1;
end;
if c =2 then write ('est');
end.
var x,y:integer;
begin
readln(x,y);
If (x>0) and (y>0) then writeln('est');
end.
Все писал с телефона