Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Multiplication-tables/DWScript/multiplication-tables.dw
Normal file
18
Task/Multiplication-tables/DWScript/multiplication-tables.dw
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const size = 12;
|
||||
var row, col : Integer;
|
||||
|
||||
Print(' | ');
|
||||
for row:=1 to size do
|
||||
Print(Format('%4d', [row]));
|
||||
PrintLn('');
|
||||
PrintLn('--+-'+StringOfChar('-', size*4));
|
||||
for row:=1 to size do begin
|
||||
Print(Format('%2d', [row]));
|
||||
Print('| ');
|
||||
for col:=1 to size do begin
|
||||
if col<row then
|
||||
Print(' ')
|
||||
else Print(Format('%4d', [row*col]));
|
||||
end;
|
||||
PrintLn('');
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue