Java Saved Program: quiescent-home

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.


 import java.util.*;
 class Arith
{
    public static void main( String args[ ] )
    {
       int a=5;
       int b=3;
       int c,d,e,f;
         c= a+b;
         d=a*b;
         e=a-b;
         f = a/b;
    System.out.println("sum of two num" +c);
    System.out.println("multiplication of two num" +d);
    System.out.println("subtraction of two num" +e);
    System.out.println("divide  of two num" +f );
    }
}
Execute

Output

Press the execute button or CTRL + enter to run code.

Inputs