The output of this code will be:
num1 - num2 = 4
public class Methods {
public Methods() {
}
public int north(int num1, int num2) {
int temp = num1;
num1 = num2;
num2 = temp;
System.out.println("num1 - num2 = " + (num1 - num2));
return 3 * (num1 - num2);
}
}
And What is out put of this question
1 answer