摘要: 1.使用for循环计算1-100的和,除了以3结尾的那些数 package gkdhxd; public class jj { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m 阅读全文
posted @ 2021-04-12 18:55 Vending 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) 3. package gkd.cm; 4. 5. public class test1 { 6. 7. /** 8. * @param args 9. */ 10. public static 阅读全文
posted @ 2021-04-06 22:43 Vending 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package gkd; import java.util.Scanner; public class test1 { public static void main(String[] args){ System. 阅读全文
posted @ 2021-03-28 14:09 Vending 阅读(58) 评论(0) 推荐(0) 编辑
摘要: package week2; public class Week1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub double r = 4.5; d 阅读全文
posted @ 2021-03-28 13:42 Vending 阅读(58) 评论(0) 推荐(0) 编辑
摘要: public class test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("193230131 计算机 阅读全文
posted @ 2021-03-08 12:34 Vending 阅读(46) 评论(0) 推荐(0) 编辑