Arithmetic Operators

in Hindi - Arithmetic Operators



not yet

Source Code :

RUNimport java.util.Scanner;

class ArithmeticOperators
{
public static void main(String args[])
{
float num1, num2, num3;
System.out.println("Enter two Numbers");
Scanner enter = new Scanner(System.in);
num1 = enter.nextInt();
num2 = enter.nextInt();
num3 = num1 + num2;
System.out.println("Addition of "+num1+" and "+num2+" is " +num3);
num3 = num1 - num2;
System.out.println("Subtraction of "+num1+" and "+num2+" is " +num3);
num3 = num1 * num2;
System.out.println("Multiplication of "+num1+" and "+num2+" is " +num3);
num3 = num1 / num2;
System.out.println("Division of "+num1+" and "+num2+" is " +num3);
}
}