首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面的程序是打印输出100~300之间的不能被3整除的数。请在每条横线处填写一条语句,使程序的功能完整。 注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填人适当的语句。 public class printNo3and
下面的程序是打印输出100~300之间的不能被3整除的数。请在每条横线处填写一条语句,使程序的功能完整。 注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填人适当的语句。 public class printNo3and
admin
2009-01-15
21
问题
下面的程序是打印输出100~300之间的不能被3整除的数。请在每条横线处填写一条语句,使程序的功能完整。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填人适当的语句。
public class printNo3and5{
void print()
{
int n ;
for(n=100 ;n<=300 ;n++){
if(n%3==0)
__________
System.out.println(n);
}
}
public static__________main(String args[])
{
printNo3and5 obj=new printN03and5();
__________
}
}
选项
答案
continue; void obj.print();
解析
转载请注明原文地址:https://kaotiyun.com/show/rhnp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
下面对视图的描述中错误的是
设有如下关系表:则下列操作中正确的是
数据库设计中反映用户对数据要求的模式是
数据库管理系统是
下列程序段执行时在屏幕上显示的结果是x1=20x2=30SETUDFPARMSTOVALUEDOtestWITHx1,x2?x1,x2PROCEDUREtestPARAMETERSa,b,x=aa=bb=x
下列程序段的输出结果是ACCEPTTOAIFA=[123]S=0ENDIFS=1?S
对长度为n的线性表排序,在最坏情况下,比较次数不是n(n-1)/2的排序方法是
表单里有一个选项按钮组,包含两个选项按钮Option1和Option2,假设Option2没有设置Click事件代码,而Optionl以及选项按钮组和表单都设置了Click事件代码,那么当表单运行时,如果用户单击Option2,系统将
下列不属于表单对象特有的方法是()。
下列关于下拉菜单和快捷菜单的说法中,错误的是()。
随机试题
学前儿童绘画、写字的持续时间不宜超过5~10分钟。()
内伤发热的一般特点是( )
有关分裂样人格障碍的说法,正确的是
关于保险公司中发生的侵占行为,下列哪些说法正确?
施工现场混凝土坍落度试验属于现场质量检查方法中的( )。
()是国内商业银行竞相发展的零售银行业务。
项目的完成和人员工作热情、积极性的保持,必须有一套合理、科学的________作为支柱和保障。
"Isn’ttheTVplaywonderful?"Thissentencemeans______.
中国第四大淡水湖(),既是淮河流域大型水库、航运枢纽,又是渔业、特产品、禽备产品的生产基地,素有“日出斗金”的美誉。
WhatdoesNancythinkofhernewneighbors?
最新回复
(
0
)