next up previous contents
Next: Solution Up: Procedures Previous: Solution

 

Simple example of Subroutine

Write a main program and subroutine that returns, as its first argument, the sum of two real numbers.

Repeat the question but this time make the subroutine internal. What are the advantages of using internal procedures.




next up previous contents
Next: Solution Up: Procedures Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996