
operations to give a resulting value, which in turn assigns the result to
variable
ave.
Line 15: The
ave is printed out on the screen using printf().
Line 16: With
system(“pause”), the program pauses while waiting for the
user to hit any key before proceeding.
Line 17: Then the main program returns a
null value before terminating.
WARNING
Always remember to end each statement with a semicolon (;). Lots of time can
be spent tracing errors only to find out a missing semicolon is the cause.
CONDITIONAL STATEMENTS
Conditional statements in the program instruct the computer to make decisions
based on a given set of choices.
There are three types of conditional ...