You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 6, 2026. It is now read-only.
public class Addition {
public static void main(String[] args) {
int number1 = 10;
int number2 = 25;
int sum = number1 + number2;
System.out.println("The sum of " + number1 + " and " + number2 + " is: " + sum);
}
}
SUBTRACTION
public class SubtractionProgram {
public static void main(String[] args) {
int number1 = 25;
int number2 = 10;
int difference = number1 - number2;
System.out.println("The first number is: " + number1);
System.out.println("The second number is: " + number2);
System.out.println("The difference is: " + difference);
}
}
multiplication
public class MultiplyFixedNumbers {
public static void main(String[] args) {
int num1 = 12;
int num2 = 13;
int product = num1 * num2;
System.out.println("The product is: " + product);
}
}
Activity