Pascal's triangle: Difference between revisions
Content added Content deleted
m (bait: fix position) |
(Added Easylang) |
||
Line 2,034: | Line 2,034: | ||
} |
} |
||
makeCommand("yourFavoriteWebBrowser")("triangle.html")</syntaxhighlight> |
makeCommand("yourFavoriteWebBrowser")("triangle.html")</syntaxhighlight> |
||
=={{header|EasyLang}}== |
|||
<syntaxhighlight> |
|||
r[] = [ 1 ] |
|||
for i to 10 |
|||
rn[] = [ ] |
|||
l = 0 |
|||
for r in r[] |
|||
write r & " " |
|||
rn[] &= l + r |
|||
l = r |
|||
. |
|||
print "" |
|||
rn[] &= l |
|||
swap r[] rn[] |
|||
. |
|||
</syntaxhighlight> |
|||
=={{header|Eiffel}}== |
=={{header|Eiffel}}== |