Computer Science, asked by ayush5473, 1 year ago

write a program in java to input two numbers. Display the numbers after swapping them by using a third variable. Sample input a=95, b=45. Sample output a=45, b=95​

Answers

Answered by danielshivasai
25
  • Java program to swap two numbers
  • import java.util.Scanner;
  • class SwapNumbers.
  • {
  • public static void main(String args[])
  • {
  • int x, y, temp;
  • System. out. println("Enter x and y");
  • Scanner in

pls click brainlylist

Answered by WorldChessChampion
0

Answer:

I also need the same question answer

Similar questions