Computer Science, asked by dishasloth, 3 months ago

write a program in Java to accept two numbers and express the value without using third variable​

Answers

Answered by XxitsmrseenuxX
7

Answer:

class demo {

public static void main(string arg[]) {

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

int x = 10;

int y = 20;

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

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

system.out.println("After swapping");

Answered by kumaratal59
3

Answer:

good morning friend

have a nice day

Similar questions