Enter three number a, b, c. Now replace the value of a by adding two other numbers b & c. Then
replace the value of c by adding value of a & b. Now print all updated numbers.
Answers
Answered by
0
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
Similar questions