Refer to the following code fragment: The output is 13 / 5 = 2.0 The programmer intends the output to be 13 / 5 = 2.6 Which of the following replacements for the first line of code will not fix the problem?
A.
double answer = (double) 13 / 5;
B.
double answer = 13 / (double) 5;
C.
double answer = 13.0 / 5;
D.
double answer = (double) (13 / 5);
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】More and more young people___________our club these days.