Computer Science, asked by psrinivasan110, 5 months ago

Write a program to input two unequal number display their numbers after swapping their value into variable wirhout ysing third number​

Answers

Answered by Anonymous
6

Answer:

hii... here is ur ans

Explanation:

Class demo

{

public static void main (string arg [ ] )

{

System.out.println("Before swapping");

int x = 10 ;

int v = 20;

System.out.println("Value of x : " + x);

System.out.println("Value of v : " + v);

x = x + v ;

v = x - v ;

x = x - v ;

System.out.println(" Value of x : " + x);

System.out.println ("Value of y : " + y);

}

}

Hope it helps you ✌

Answered by Anonymous
1

Answer:

good evening dear.......

Similar questions