GEORGE (programming language): Difference between revisions

Content deleted Content added
m top: typo and general fixes, replaced: run though → run through using AWB
Line 38:
</pre>
: In the program, the first line is a vector read that reads in the ten values into a(1) through a(10).
: The second line introduces a loop to run thoughthrough the ten values of j.
: The third line fetches a(j), duplicates it, multiplies those two values giving the square, and then stores it in a(j). Note the semicolon (;), which clears (or cancels) the top entry in the accumulator stack. Were this not done, the accumulator would gradually fill up with the squares of the values.
: The final line is a vector punch (i.e., print) to write out the ten squares.