1.
var a,b,h:integer;
begin
readln(a,b);
if a while a<>b do
begin
write(a,' ');
a:=a+h;
end;
writeln(a);
end.
Пример:
7 12
7 8 9 10 11 12
2.
var a,b:integer;
begin
readln(a,b);
if a while a<=b do<br> begin
write(a,' ');
a:=a+1;
end
else
while a>=b do
begin
write(a,' ');
a:=a-1;
end;
end.
Пример:
12 7
12 11 10 9 8 7