CoCoA:Print

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Print

print the value of an expression

Description

This command displays the value of each of the expressions, E_i.

The parentheses are optional. The argument NewLine (without

quotes, but note the two capital letters), moves the cursor to the next line.

The similar command <ttref>PrintLn</ttref> is equivalent

to Print with a final extra argument, NewLine.

Example

  For I := 1 To 10 Do
    Print I^2, <quotes> </quotes>;
  EndFor;
1 4 9 16 25 36 49 64 81 100
-------------------------------
  Print <quotes>hello</quotes>,NewLine,<quotes>world</quotes>;
hello
world
-------------------------------

Syntax

Print E_1,...,E_n :NULL
Print(E_1,...,E_n):NULL

where the E_i are CoCoA expressions.

Print On

PrintLn

Latex

StarPrint

   <type>io</type>
   <type>printing</type>