up previous next
PrintLn

print the value of an expression

Syntax
PrintLn E_1,...,E_n :NULL

where the E_i are CoCoA expressions.

Description
This command is equivalent to Print with a final newline; in other words, it prints the values of its arguments, then moves the cursor to the next line.

Example
/**/  for I := 1 to 10 do
        print I^2, " ";
      EndFor;
1 4 9 16 25 36 49 64 81 100

/**/  for I := 1 to 3 do
        PrintLn I;
      EndFor;
1
2
3

See Also