摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package threehomework; import java.util.Scanner; public class text1 { public static void main(String[] args 阅读全文
posted @ 2020-03-24 00:05 纪明 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1、已知a,b均是整型变量,写出将a,b两个变量中的值互换的程序。(知识点:变量和运算符综合应用) package kedangzuoye; public class text1 { public static void main(String[] args) { int a=100; int b= 阅读全文
posted @ 2020-03-19 12:33 纪明 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-06 19:27 纪明 阅读(94) 评论(0) 推荐(0) 编辑