Experimenting with Variable Parameters (Vars)

You could return to previous programs and write procedures with variable parameters to input the data.

Confirm that the keyword out can be used instead of var.

Try writing the body of the following procedure and include it in a program. You could generate Num1 and Num2 using the RandomRange function.

procedure CalcSumDiff(Num1, Num2 : real; var Sum, Difference: real);
Programming - a skill for life!

Introduction to Procedures and Functions