2.1. Introduction
In this chapter, we present five
examples that demonstrate how your programs can display messages and obtain
information from the user for processing. The first three examples display
messages on the screen. The next obtains two numbers from a user, calculates
their sum and displays the result. The accompanying discussion shows you how to
perform various arithmetic calculations and save their results for later use.
The fifth example demonstrates decision-making fundamentals by comparing two
numbers, then displaying messages based on the comparison results.