September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/Multiplication-tables/Agena/multiplication-tables.agena
Normal file
14
Task/Multiplication-tables/Agena/multiplication-tables.agena
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
scope
|
||||
# print a school style multiplication table
|
||||
# NB: print outputs a newline at the end, write and printf do not
|
||||
write( " " );
|
||||
for i to 12 do printf( " %3d", i ) od;
|
||||
printf( "\n +" );
|
||||
for i to 12 do write( "----" ) od;
|
||||
for i to 12 do
|
||||
printf( "\n%3d|", i );
|
||||
for j to i - 1 do write( " " ) od;
|
||||
for j from i to 12 do printf( " %3d", i * j ) od;
|
||||
od;
|
||||
print()
|
||||
epocs
|
||||
Loading…
Add table
Add a link
Reference in a new issue