Skip to main content

4.14) The Stop Command


When you make decisions in a program then it sometimes becomes necessary to stop the program at different times. You can put a stop on any line of program and it will end the program at that point. Try it out with one of the examples you have learned. Add a stop on any line after the declarations.

Now that we know if statements and your code can go along different lines depending on these statements, sometimes it is necessary to stop the code at a different location. See Example 11 for an example of this.

See the next page for an example of stop.