PROGRAM FOR ADDITION OF TWO NUMBER

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package pack;
import java.util.Scanner;
public class Addition
{
         public static void main(String[] args)
         {
            System.out.print("Enter the first number:");
            Scanner x=new Scanner(System.in);
            int i=x.nextInt();
            System.out.print("Enter the Second number:");
            Scanner y=new Scanner(System.in);
            int j=y.nextInt();
            int z;
            z=i+j;
            System.out.println("The Sum Of Entered of Two Values : "+z);   
        }
}

Output:Add Two Numbers
IPAdd