Java program to add two numbers

adding two numbers in java using command line arguments

/*sum of two number in java*/
import java.util.Scanner;

class SumOf TwoNumber
   public static void main(String args[])
      int a, b, c;
      System.out.println("Enter two integer Number ");
      Scanner in = new Scanner(;
      a = in.nextInt();
      b = in.nextInt();
      c = a + b;
      System.out.println("Sum of  integers Number = "+c);

Related Posts