03 2021 档案

摘要:1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package chap3; import java.util.Scanner; public class text1 { public static void main(String[] args) { // T 阅读全文
posted @ 2021-03-26 19:26 计算机1901金皓楠 阅读(71) 评论(0) 推荐(0) 编辑
摘要:1.编写一个程序,定义圆的半径,求圆的面积. package chap1; public class text6 { public static void main(String[] args) { double r=2; double s; s=3.14*r*r; System.out.print 阅读全文
posted @ 2021-03-12 09:43 计算机1901金皓楠 阅读(67) 评论(0) 推荐(0) 编辑
摘要:1.输出学号班级和姓名 package chap1; public class text1 { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("193230 阅读全文
posted @ 2021-03-05 10:30 计算机1901金皓楠 阅读(52) 评论(0) 推荐(0) 编辑