airth06_01.java
7198 단어 javaprogrammingbeginnerstutorial
// ~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 (-:");
}
}
Reference
이 문제에 관하여(airth06_01.java), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/ukantjadia/airth0601java-1a4o텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)