The purpose of this program fragment is to show how a loop-control variable can be decremented using the FOR-DOWNTO-DO loop. This fragment prints the first five odd Natural numbers backwards.
The Source | The Variables |
The Output | |
The Source N.B. This is the only time that the first line will be highlighted. The Turbo Pascal debugger handles the decrement later. | |