Java Addition Program

import java.util.*;
class addition
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter two numbers :");
        int a = sc.nextInt();
        int b= sc.nextInt();
        System.out.println("Sum = "+ (a+b));
    }
}

Comments

Popular posts from this blog

GYM WebPage