DEV Community

Cover image for airth06_01.java
darKLoin
darKLoin

Posted on • Edited on

airth06_01.java

// ~Airthmatic Operators // problem: // airth06_01.java{wirte java program showing the waorking of all Airthmatic Operators.} class airth06_01 { public static void main(String args[]) { int x= 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 (-:"); } } 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)