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
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
0
Answer:
I also need the same question answer
Similar questions