기본 실습(기본 연산자)
class OperatorClass { public static void main(String[] args) { /* operator 기본연산자( +, -, *, /, % ) 고급연산자( &, |, ^(xor), (rightshift, ~(반전) ) 논리연산자( &&(and), ||(or), !(not) ) */ int num1, num2; int result;//결과값 변수 result = 12; result = 13 * 24; System.out.println("result = " + result); num1 = 10; num2 = 20; result = num1 + num2; System.out.println( num1 + " + " + num2 + " = " + result); result = n..
더보기