问答题

(2-6)写出下面程序运行结果。
public class Demo {
    public static void main(String args[]) {
        int x = 9, y = 11, z = 8;
        int t, w;
        t = x > y ? x : y + x;
        w = t > z ? t : z;
        System.out.println(w);
    }
}

【参考答案】

(1)
20