Advertisement

152 Call by reference to swap the two numbers

152 Call by reference to swap the two numbers 1-Enter the first number.
2-Enter the second number.
3-Declare a temp variable.
4-Assign the first number in temp variable.
5-Assign the second number in the first number.
6-Assign the temp into the second number.
7-Print out the results.

numbers

Post a Comment

0 Comments