【问题】 读下列程序,写出正确的运行结果。。。classstestt{{{ publiccstaticcvoiddmainn(Stringg[]]argss){{{ inttx=9,,y;;;iff(x>=0))) iff(x>0)) y=1;;;elseey=0;;; elseey=-1;;; System.out.println(y);;; }}
读下列程序,写出正确的运行结果。。。classstestt{{{ publiccstaticcvoiddmainn(Stringg[]]argss){{{ inttx=9,,y;;;iff(x>=0))) iff(x>0)) y=1;;;elseey=0;;; elseey=-1;;; System.out.println(y);;; }}
正确答案:1
题目解析:本题出自郑州科技学院,郑州科技学院Java程序设计,由丰阳塔题库搜集整理。