up previous next
print

print the value of an expression

Syntax
print E_1,...,E_n :NULL

where the E_i are CoCoA expressions.

Description
This command displays the value of each of the expressions, E_i . To insert a newline write \n in the string or call the function NewLine (returning a string containing a newline)

The similar command PrintLn is equivalent to print with a final newline.

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

/**/  print "a\nb", NewLine(), "c";
a
b
c

See Also