摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 packagesjlx; publicclasssjlx { /** * @paramargs */ publicstaticvoid main(String[] args) { // TODO 阅读全文
posted @ 2021-04-19 15:23 王城凯 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1.使用for循环计算1-100的和,除了以3结尾的数 packagesjlx; publicclass sjlx1 { /** * @paramargs */ publicstaticvoid main(String[] args) { // TODO Auto-generated method 阅读全文
posted @ 2021-04-12 18:33 王城凯 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。 packagesjlx; publicclass exe { /** * @paramargs */ publicstaticvoid main(String[] args) { // TODO Auto-g 阅读全文
posted @ 2021-04-06 15:32 王城凯 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1.输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package exe2; import java.util.Scanner; public class text6 { public text6() { // TODO Auto-generated constr 阅读全文
posted @ 2021-03-27 22:16 王城凯 阅读(39) 评论(1) 推荐(0) 编辑
摘要: 1.编写一个程序,定义圆的半径,求圆的面积. package exe2; public class text3 { public static void main(String[] args) { // TODO Auto-generated method stub double r=3.0; do 阅读全文
posted @ 2021-03-12 11:39 王城凯 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.输出学号班级和姓名 package exe2; public class text { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("19323052 阅读全文
posted @ 2021-03-07 09:43 王城凯 阅读(15) 评论(0) 推荐(0) 编辑