diff --git a/add.java b/add.java new file mode 100644 index 0000000..c70a4fb --- /dev/null +++ b/add.java @@ -0,0 +1,13 @@ +public class AddNumbers { + public static int add(int a, int b) { + return a + b; + } + + public static void main(String[] args) { + int num1 = 5; + int num2 = 10; + int result = add(num1, num2); + + System.out.println("The sum of " + num1 + " and " + num2 + " is: " + result); + } +}