给定如下Java代码,编译运行之后,将会输出public static void main(String args[]){ int a = 5;System.out.println((a % 2 == 1) ? (a + 1)/2 : a/2);}
A.
1
B.
2
C.
2.5
D.
3
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【判断题】As long as the balance of payments is out of balance, fiscal policy or monetary policy can always be adopted for adjustment, which can not only maintain the external balance, but also achieve the inte...
【单选题】Which of the following are the goals of macroeconomic policy? 1 Encouraging economic growth 2 Low unemployment 3 Achievement of a balance between exports and imports 4 Achieving zero inflation
【简答题】The decision as to whether or not to use new technologies and intellectual property tools to participate in the information economy is (tied) to the overall cultural and economic goals of the traditio...