Addition of two numbers in JAVA . How to add two no in java language.

JAVA Programme to add two numbers.



For full detailed explaination click on below ::


Copy the code below for practice

package microsoft ;
import java.util.Scanner ;
public class javawithnilesh
{
    public static void main (String args[])
    {
        Scanner input =new Scanner (System.in);
        int a, b, sum ;
        a = input.nextInt();
        b= input.nextInt();
        sum = a+b ;
        System.out.println("Addition of two no  ::"+sum);
        }}



Comments

Popular posts from this blog

Create an array of 5 floats and calculate their sum in java .