/* Declare Varibles before use: */
int lower, upper, step;
/* Assignement statements: */
lower = 0;
upper = 300;
step = 20;
/* thats the intitial values covered */
Each line is computed the same way. Therefore, we must use a loop that repeats once per output line; this is the purpose of teh while loop.
while (fahr <= upper) {
}
This carries on untill (fahr <= upper) is false.
"The choice between while and for is arbitrary, based on which seems clearer. The for is
usually appropriate for loops in which the initialization and increment are single statements
and logically related, since it is more compact than while and it keeps the loop control
statements together in one place."
finished towards the end of page 16 : )
NEXT: write that 'for' program