Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,14 +1,20 @@
|
|||
program numlist(output);
|
||||
|
||||
const MAXNUM: integer = 10;
|
||||
var
|
||||
i: integer;
|
||||
|
||||
begin
|
||||
for i := 1 to 10 do
|
||||
{ loop 1: w/ if branching }
|
||||
for i := 1 to MAXNUM do
|
||||
begin
|
||||
write(i);
|
||||
if i <> 10 then
|
||||
if i <> MAXNUM then
|
||||
write(', ')
|
||||
end;
|
||||
writeln;
|
||||
{ loop 2: w/o if branching }
|
||||
for i := 1 to MAXNUM-1 do
|
||||
write(i, ', ');
|
||||
writeln(MAXNUM);
|
||||
end.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue