// ~Airthmatic Operators// problem:// airth06_01.java{wirte java program showing the waorking of all Airthmatic Operators.}classairth06_01{publicstaticvoidmain(Stringargs[]){intx=10,y=10;System.out.println("Value of x = "+x+" and value of y = "+y);System.out.println("SUM of "+x+" and "+y+" is "+(x+y));System.out.println("SUBSTRACTION of "+x+" and "+y+" is "+(x-y));System.out.println("MULTIPLICATION of "+x+" and "+y+" is "+(x*y));System.out.println("DIVIDE of "+x+" and "+y+" is "+(x/y));System.out.println("MODULAS of "+x+" and "+y+" is "+(x%y));System.out.println("SUM and EQUAL of "+x+" and "+y+" is "+(x+=y));System.out.println("SUBSTRACTION and EQUAL of "+x+" and "+y+" is "+(x-=y));System.out.println("MULTIPLICATION and EQUAL of "+x+" and "+y+" is "+(x*=y));System.out.println("DIVIDE and EQUAL of "+x+" and "+y+" is "+(x/=y));System.out.println("MODULAS and EQUAL of "+x+" and "+y+" is "+(x%=y));System.out.println("ENDING THE PROGRAM...\n:-) THANK YOU (-:");}}
Top comments (0)
Subscribe
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (0)