728x90
package ch01_variable_operator;
public class Arithmetic01 {
public static void main(String[] args) {
int x = 14 ;
int y = 5 ;
System.out.println("더하기 : " + (x + y));
System.out.println("빼기 : " + (x - y));
System.out.println("곱하기 : " + (x * y));
System.out.println("나누기 : " + (x / y));
System.out.println("나눗셈 : " + (x % y));
}
}
cf) Myjava/Arithmetic01.java at master · nolooker/Myjava (github.com)
728x90
반응형
'console.log("What ? " + Cord); > Java' 카테고리의 다른 글
<Git> ArithmeticOperator2.java (0) | 2023.02.02 |
---|---|
<Git> ArithmeticOperator.java (0) | 2023.02.02 |
<Git> AreaTest.java (0) | 2023.02.02 |
<Git> add2.java (0) | 2023.02.02 |
<Git> add.java (0) | 2023.02.02 |