EZ Math Movie, Tutorials, Printing, Printing a New Line

On to the next line

We have seen that the command print places all text on the same line. The command printNumber works that way, too. If you want to print something on one line, and then print something else on the next line, you use the command printNewLine in between two print commands. So this code:

print('This is the first line.');
print('This is the second line.');

Produces this output on the printer:

This is the first line.
This is the second line.

Running the example program

If you have been through the previous two tutorials, you probably already understand printNewLine. Here is one more example showing how it is used.

The example program

Angle measurement: Degrees Radians

Go on input

Sorry, apparently this browser does not support HTML 5 canvas tag graphics.

Edit: Runtime          View: Starter Suggestion

To runtime:


Editor width: Normal Wide








Next tutorial: Printing text and numbers


Here is a link to a related article at EZ Programing Demos:

Printing words on several lines

All contents of EZ Math Movie are copyrighted: Copyright 2011, Edward A. Zobel. All rights reserved.

Other sites you may find interesting

Zona Land Education Like Math and Physics?

Zona Land Education offers explanations, diagrams, and animations on these topics.
And it is all presented in a clear and casual manner.

Here is the link: zonalandeducation.com

EZ Programing Demos Want to learn about programing computers?

EZ Programing Demos has an animated, slow motion, interactive programing language demonstrator.
The site presents basic ideas at a beginner's level.

Here is the link: ezprogramingdemos.com

Custom Search