CoCoA:PrintLn

From ApCoCoAWiki

PrintLn

print the value of an expression

Description

This command is equivalent to <ttref>Print</ttref> with a final extra

argument, NewLine; in other words, it prints the values of its

arguments, then moves the cursor to the next line. The parentheses are optional.

Example

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

-------------------------------
  Print <quotes>hello</quotes>,NewLine,<quotes>world</quotes>;
hello
world
-------------------------------

Syntax

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

where the E_i are CoCoA expressions.

Print

Print On

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