diff --git a/addition b/addition new file mode 100644 index 0000000..df8dd22 --- /dev/null +++ b/addition @@ -0,0 +1,14 @@ +// Java program to add two numbers +public class AddNumbers { + public static void main(String[] args) { + // Declare two numbers + int num1 = 10; + int num2 = 20; + + // Add them + int sum = num1 + num2; + + // Print the result + System.out.println("The sum is: " + sum); + } +}