Java Program to Add two Numbers
public class AddTwoNumbers { public static void main(String[] args) { int num1 = 15, num2 = 20, sum; sum = num1 + num2; System.out.println("Sum of these numbers: "+sum); } }
public class AddTwoNumbers { public static void main(String[] args) { int num1 = 15, num2 = 20, sum; sum = num1 + num2; System.out.println("Sum of these numbers: "+sum); } }