Swapping of two numbers without using third variable class8
Answers
Answered by
1
Answer:
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.
Answered by
0
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.
Explanation:
Similar questions
French,
2 months ago
History,
2 months ago
India Languages,
4 months ago
English,
4 months ago
English,
11 months ago