0
public class num {
public static void main(String args[]) {
int i = 5, j = 9, k = 3;
int w, x;
w = i | j | k;
x = i &j & k;
System.out.println(w);
System.out.println(x);
}
}
爲什麼數值爲w = 15
和x = 1
?我正在使用操作符|和「但沒有得到正確答案
你期待什麼答案? – Cruncher