Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Turtle Art/Tutorials/Stack Programming
(view source)
Revision as of 03:18, 22 September 2011
29 bytes added
,
03:18, 22 September 2011
no edit summary
Line 1:
Line 1:
The Forth programming language uses a stack for computations.
The Forth programming language uses a stack for computations.
−
On the right of the screen, the Forth words + - x / DUP and SWAP
+
On the right of the screen, the Forth words + - x / DUP and SWAP
are implemented with blocks.
On the left, a Forth like program to compute 3^2 +4^2 = 25
On the left, a Forth like program to compute 3^2 +4^2 = 25
Tonyforster
2,486
edits