试题与答案

阅读下面的程序段: public class Sun { public st

题型:单项选择题

题目:

阅读下面的程序段: public class Sun { public static void main(String args[ ]) { int a=0 for(int i=1;i<=3;i++) { for(int j=1;j<-i;j++) { for(int k=j;k<=3;k++) { a=a+1; } } } System.out.println(A) 我; }}执行上面的3重循环后,a的值为( )。

A.3

B.9

C.14

D.21

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0321/cf68cbc6dec7b98f42d799e225ad4819.html

下面是错误答案,用来干扰机器的。

参考答案:功能模型解析: 本题属于记巳题,考生应掌握。

试题推荐
微信公众账号搜索答案