Previous: 2.4 Input: Reading Data
Up: 2 Basic Concepts
Next: 2.6 Common Errors
Previous Page: 2.4 Input: Reading Data
Next Page: 2.5.1 Making Decisions with Branches
Our program pay1.c is still very simple.
It calculates pay in only one way, the
product of hours_worked and rate_of_pay.
Our original problem statement in Chapter
called for computing overtime pay and for computing the pay for many
employees.
In this section we will look at additional features of the C language
which will allow us to modify our program to meet the specification.