Multiplication tables: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 3,290: | Line 3,290: | ||
=={{header|EasyLang}}== |
=={{header|EasyLang}}== |
||
<syntaxhighlight lang="easylang"> |
<syntaxhighlight lang="easylang"> |
||
n = 12 |
|||
func out h . . |
|||
numfmt 0 4 |
|||
if h < 10 |
|||
write " " |
|||
elif h < 100 |
|||
write " " |
|||
. |
|||
write " " |
|||
write h |
|||
⚫ | |||
write " " |
write " " |
||
for i = 1 to n |
for i = 1 to n |
||
write i |
|||
. |
. |
||
print "" |
print "" |
||
write " " |
write " " |
||
for i = 1 to n |
for i = 1 to n |
||
write "----" |
write "----" |
||
. |
. |
||
print "" |
print "" |
||
for i = 1 to n |
for i = 1 to n |
||
write i |
|||
write "|" |
write "|" |
||
for j = 1 to n |
for j = 1 to n |
||
if j < i |
if j < i |
||
write " " |
write " " |
||
else |
else |
||
write i * j |
|||
. |
. |
||
. |
. |
||
print "" |
print "" |
||
⚫ | |||
</syntaxhighlight> |
|||
=={{header|EchoLisp}}== |
=={{header|EchoLisp}}== |