public class basic {
public static void main(String[] args) {
int result = to_the_n(5);
System.out.println(result);
}
public static int to_the_n(int num) {
return 2^(num);
}
}
이렇게 하면 result에 2의 5승이 저장되어서
32가 나와야 정답 아닌가요??
그런데 7이 나오네요 ㅠㅠ
제가 뭘 잘못한 건지 알려주실 수 있을까요