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
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
0
Answer:
Interchange
Explanation:
Similar questions