03 2020 档案
摘要:1.编写程序, 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。(知识点:if条件语句) package the; import java.util.Scanner; public class newcless4 { pu
阅读全文
摘要:1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package the; import java.util.Scanner; public class world { public static void main(String[] args) { //输入一个
阅读全文
摘要:package the; public class world { public static void main(String[] args) { int a=2,b=3; int c=0; System.out.println("互换前:a="+a+" "+"b="+b); a=c; a=b;
阅读全文
摘要:package the; public class world { public static void main(String[] args){ //TODO Auto-generated method stub System.out.println("The world"); } }
阅读全文