Question: UESTION 3 Create a user-defined function that takes two integer parameters, using pass-by-reference. The function will compare the two numbers and set the larger number

 UESTION 3 Create a user-defined function that takes two integer parameters,

UESTION 3 Create a user-defined function that takes two integer parameters, using pass-by-reference. The function will compare the two numbers and set the larger number variable with the value of the smaller number, and the smaller number variable with the difference of the original two numbers. For example: n1=10, n2=6 After the function call, n1=6, n2 = 4; TT T Arial3 (12pt) T E - S 25

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!