The Print statement
We have already seen a few examples of the use of the Print statement. As
Mathematica
prints the result of most calculations, it is usually not necessary to use the
Print statement, except
to format the output for improved readability. There are some features of
the
Print statement that should be kept in mind. The first is that Print does not
leave any
space between the values of different arguments. The amount of space for
proper
display has to be specified by you. For example,
Print[ a,b,c]
To get the appropriate space, specify it in the statement.
Print[ a, " ", b, " ", c]
Additional characters that are useful are "\t" for the tab and
"\n" for the end of line. Unlike
C, Mathematica always places an end of line character at the end of a
Print statement.
Do[ Print[ "First prime above ", 10^n, " is ",
firstprimeabove[ 10^n]],
{n, 1, 10}]
Up to Tutorial