Print( obj1, obj2... )
Print
prints the objects obj1, obj2... etc. to the standard output.
The output looks exactly like the printed representation of the objects
printed by the main loop. The exception are strings, which are printed
without the enclosing quotes and a few other transformations (see
Strings and Characters). Note that no space or newline is printed
between the objects. PrintTo
can be used to print to a file (see
PrintTo).
gap> for i in [1..5] do > Print( i, " ", i^2, " ", i^3, "\n" ); > od; 1 1 1 2 4 8 3 9 27 4 16 64 5 25 125
GAP 3.4.4