下面程序的输出结果是______。 public class exl { public static void main(String[] args) { for(int cn

admin2008-01-11  6

问题 下面程序的输出结果是______。    public class exl    {          public static void main(String[]  args)          {                for(int cnt=0;cnt<10,;cnt++)                {                     if(cnt==5)                     break;                     System.out.print(cnt);                }          }     }

选项 A、01234
B、012346789
C、6789
D、5

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/Hbnp777K
0

最新回复(0)