Previous Up Next

12.1.5  Programs

A program is similar to a function, and is written like a function without a return value. Programs are used to display results or to create drawings. It is a good idea to turn a program into a function by putting return 0 at the end; this way you will get a response of 0 when the program executes.


Previous Up Next