Java Code:
1 2 3 4 5 6 7 8 9 10 11 12 | public class Main { public static void main(String args[]) { int number1 = 20, number2 = 10; number1 -= number2; System.out.println("Result: " + number1); } } |
Output:
1 2 3 | Result: 10 |
Java Code:
1 2 3 4 5 6 7 8 9 10 11 12 | public class Main { public static void main(String args[]) { int number1 = 20, number2 = 10; number1 -= number2; System.out.println("Result: " + number1); } } |
Output:
1 2 3 | Result: 10 |