题目内容

阅读下面程序,while循环的次数是inti=0;while(i<10){i++;if(i<1)continue;if(i==5)break;}

A. 1
B. 10
C. 6
D. 5

查看答案
更多问题

“同构数”是指这样的整数:它恰好出现在其平方数的右端,例如5和6就是同构数。请编写一程序找出10~999之间的同构数,并输出显示。(答案中间不要有空格)publicclassTGS{publicstaticvoidmain(String[]args){for(inti=10;i<=999;i++){if((1)||(2))System.out.println(i);}}}

编程求出1-100之间偶数的和。publicclassExam1{publicstaticvoidmain(Stringargs[]){(1);//定义整型变量sum(等号两边不要留空格)for(inti=2;i<=100;){sum+=i;(2);}//等号两边不要留空格System.out.println("1-100之间偶数的和是:"+sum);}}

完成求n!的程序publicclassExam2{publicstaticvoidmain(Stringargs[]){factorial(3);factorial(6);factorial(9);}voidfactorial(intn){longm=1;for(intx=1;x<=n;(1))(2);//等号两边不要留空格System.out.println(n+"!="+m);}}

How did Marcia McNutt feel when she received theinvitation and why?She was ___________, because she thought Premier Li had too many______________of national and international concern to attend to than to meet her.

答案查题题库