up previous next
print the value of an expression
Print E_1,...,E_n :NULL
where the E_i are CoCoA expressions.
|
This command displays the value of each of the expressions,
E_i.
The parentheses are optional. The argument
NewLine is now
obsolescent, but from 4.7.5 there is the function
NewLine
returning a string containing a newline.
The similar command
PrintLn
is equivalent to
Print
with a final newline.
For I := 1 To 10 Do
Print I^2, " ";
EndFor;
1 4 9 16 25 36 49 64 81 100
-------------------------------
Print "a", NewLine(), "b", NewLine(), "c";
a
b
c
-------------------------------
|