Sunday, August 30, 2020

Arithmetic operator in java full source code | java with Eaglesoft

public class Arthematic_operator 

{

    public static void main(String[] args)

     {

       double x,y,res=0;

       //You can also use int type instead of double

       x=23;

       y=12;

       res=x/y; 

       //+,-,*,& change operators what you want to use

       System.out.println("Result is: "+ res);    

    }   

}

No comments:

Post a Comment