03 2020 档案

摘要:1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package wjb; import java.util.concurrent.SynchronousQueue; public class wjbc { public static 阅读全文
posted @ 2020-03-31 20:42 蔚丶然 阅读(221) 评论(0) 推荐(0)
摘要:1.编写程序, 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。(知识点:if条件语句) package wjb; import java.util.Scanner; public class wjbc { public 阅读全文
posted @ 2020-03-26 11:44 蔚丶然 阅读(163) 评论(0) 推荐(0)
摘要:1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package wjb; import java.util.Scanner; public class wjbc { public static void main(String[] args) { System. 阅读全文
posted @ 2020-03-24 20:23 蔚丶然 阅读(293) 评论(0) 推荐(0)
摘要:package wjb; public class wjbc { public static void main(String[] args) { int a=5; int b=6; int c; c=a; a=b; b=c; System.out.println("a="+a); System.o 阅读全文
posted @ 2020-03-19 11:36 蔚丶然 阅读(152) 评论(0) 推荐(0)
摘要:package wjb; public class wjbc { public static void main(String[] args) { System.out.println("hello"); System.out.println("world"); } } 阅读全文
posted @ 2020-03-08 16:44 蔚丶然 阅读(181) 评论(0) 推荐(0)