write a c program to swap the values of interger variables "a" and "b" and display them
Answers
Answered by
0
Answer:
Use a temporary variable to perform swapping.
Explanation:
1. take a and b as user input (type : int).
2. display a and b before swapping.
3. Logic:
temp == a
a == b
b == temp
4. display variables after swapping.
Similar questions