Computer Science, asked by bhumikaguptavis2010, 19 days ago


Wbrite q- basic to take Two
numbers and Swap (interchange)
the numbes with each other.
The first two answer in between them one will be marked as brainliest​

Answers

Answered by karthikeyareddy129
0

Answer:

Explanation:

 

ANSWER

public class KboatSwap

{

   public static void swapNumbers(int a, int b) {

       System.out.println("The numbers are:");

       System.out.println("a=" + a + " b=" + b);

       a = a + b;

       b = a - b;

       a = a - b;

       System.out.println("The numbers after interchange:");

       System.out.println("a=" + a + " b=" + b);

   }

}

Answered by sabarish1305
0

Answer:

Interchange

Explanation:

Similar questions