JAVA QUIZ 2

sung eon·2022년 5월 16일
0

JAVA

목록 보기
4/21

Quiz

퀴즈1: 주어진 코드를 보고 출력 결과를 생각해보세요.

public class Main {
    public static void main(String[] args) {
        // write your code here
        int num1 = 10;
        int num2 = 3;
        boolean bool1 = true;
        boolean bool2 = false;
        num1 += num1;
        num2 *= num1;
        System.out.println(num1);
        System.out.println(num2);
        System.out.println(bool1 && bool2);
    }
}

내 답안

20
60
false

다 맞음!

profile
코베베

0개의 댓글