Computer Science, asked by shreyas30259799, 5 months ago

write a java program to inter change the values without using the third variable ​

Answers

Answered by shaziafaisalshamsi14
1

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

its the answer....

Attachments:
Answered by mrinmoychakraborty11
2

Explanation:

int a, b;

a=5;

b=4;

a=a+b;

b=b-a;

a=a-b;

then println the value

Similar questions