会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
王佳瑜
博客园
首页
新随笔
联系
订阅
管理
2021年4月5日
java第五次作业
摘要: 上机练习 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) int a=1; int sum=0; while (a<100) { if(a%3==0) sum+=a; a++; } System.out.println("1到100被3
阅读全文
posted @ 2021-04-05 13:42 王佳瑜
阅读(71)
评论(0)
推荐(0)
编辑
公告