InterviewSolution
Saved Bookmarks
| 1. |
Enter three number a, b, c. Now replace the value of a by adding two other numbers b & c. Thenreplace the value of c by adding value of a & b. Now print all updated numbers. |
|
Answer» Swap three VARIABLES without using temporary variable Given three variables, a, b and C, swap them without temporary variable. Input : a = 10, b = 20 and c = 30 Output : a = 30, b = 10 and c = 20 |
|