摘要: 1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package day01; public class yeah { public static void main(String[] args) { // TODO Auto-gene 阅读全文
posted @ 2020-03-31 12:29 bluebless 阅读(113) 评论(0) 推荐(0)
摘要: 1.编写程序, 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。(知识点:if条件语句) package day01; import java.util.*; public class firstwork { public 阅读全文
posted @ 2020-03-26 12:01 bluebless 阅读(158) 评论(0) 推荐(0)
摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package day01; import java.util.*; public class firstwork { public static void main(String[] args) { Scanne 阅读全文
posted @ 2020-03-22 12:47 bluebless 阅读(195) 评论(0) 推荐(0)
摘要: 1、已知a,b均是整型变量,写出将a,b两个变量中的值互换的程序。(知识点:变量和运算符综合应用) package day01; public class firstwork { public static void main(String[] args) { int a=5; int b=9; i 阅读全文
posted @ 2020-03-19 11:26 bluebless 阅读(213) 评论(0) 推荐(0)
摘要: public class first { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("holle world"); } } 阅读全文
posted @ 2020-03-07 12:16 bluebless 阅读(183) 评论(0) 推荐(0)