langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
24
Task/Multiplication-tables/Seed7/multiplication-tables.seed7
Normal file
24
Task/Multiplication-tables/Seed7/multiplication-tables.seed7
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const proc: main is func
|
||||
local
|
||||
const integer: n is 12;
|
||||
var integer: i is 0;
|
||||
var integer: j is 0;
|
||||
begin
|
||||
for j range 1 to n do
|
||||
write(j lpad 3 <& " ");
|
||||
end for;
|
||||
writeln;
|
||||
writeln("-" mult 4 * n);
|
||||
for i range 1 to n do
|
||||
for j range 1 to n do
|
||||
if j < i then
|
||||
write(" ");
|
||||
else
|
||||
write(i * j lpad 3 <& " ");
|
||||
end if;
|
||||
end for;
|
||||
writeln("|" <& i lpad 3);
|
||||
end for;
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue