up previous next
2.2.4 Examples of Entering Commands
Here are some examples of entering simple commands in CoCoA. (Macintosh OS9 and GUI users please remember the special instructions made in the previous section.)

Example
  1+1;  -- a simple command
2
-------------------------------
  1  +   -- the same command spread over several lines

  1;
2
-------------------------------
  1+1; 2+2; 3+3;  -- several commands on a single line
2
-------------------------------
4
-------------------------------
6
-------------------------------
NOTE: The output above appears just as it does in my CoCoA window. The examples in the online manual will often be annotated. When CoCoA encounters *double dashes*, as above, it regards the rest of the line as a comment.