Write a program to input two unequal number display their numbers after swapping their value into variable wirhout ysing third number
Answers
Answered by
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
1
Answer:
good evening dear.......
Similar questions