摘要: 上机练习 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) 编辑