|
|
||
![]() |
Department of
Mathematics and Computer Science |
|
The "BALANCE" section of each of these lines is summed together to produce a "TOTAL" which is printed out after all the lines are repeated.
In order to switch formatting to introduce a $ sign in the output, the input balance is moved into a temporary variable with appropriate editing and then back to the output balance section.
This is the link to file TEST2.COB.
This file contains several lines of data as described above (id number, name, balance).
This page is maintained by Dennis C. Smolarski, S.J.
dsmolarski@math.scu.edu
Last updated: 2 May 2000.