write a c program to swapping to interger without using temporary variable algorithm
Answers
Answered by
6
Answer:
Program to swap two numbers without using the third variable.
- STEP 1: START.
- STEP 2: ENTER x, y.
- STEP 3: PRINT x, y.
- STEP 4: x = x + y.
- STEP 5: y= x - y.
- STEP 6: x =x - y.
- STEP 7: PRINT x, y.
- STEP 8: END.
hope it helps dear be happy:-)
Similar questions
English,
1 month ago
Computer Science,
1 month ago
English,
1 month ago
Science,
3 months ago
Political Science,
3 months ago
Math,
9 months ago
Math,
9 months ago
Math,
9 months ago