Computer Science, asked by lovmishra, 5 hours ago

Write a program in java to input two numbers.           Display the numbers after swapping them by using a third variable.                                                                                               sample input      : a=12,    b=20         sample output   : a=20,     b=12 ​

Answers

Answered by MrRdx
0

Java Program

import java.util.*;

class Swap_With {

public static void main(String[] args) {

int x, y, t;// x and y are to swap.

Scanner sc = new Scanner(System.in);

System.out.println("Enter the value of X and Y");

x = sc.nextInt();

y = sc.nextInt();

Plz Brainlist my Answer...

Answered by Nileshkasar
0

Answer:

please tell my question answer

Similar questions