Answers for "swap 2 numbers java function"

0

java program to swap two numbers

int a, b, c;
a = 5;
b = 3;
System.out.println("Before SWAP a = " + a + ", b = " + b);
c = a;
a = b;
b = c;
System.out.println("After SWAP a = " + a + ", b = " + b);
Posted by: Guest on November-11-2020

Code answers related to "swap 2 numbers java function"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language