摘要:
1. 编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值 package uuu; import java.util.Scanner; public class huhh { public static void main(String[] args) 阅读全文
posted @ 2023-04-26 01:32
Berial127
阅读(46)
评论(0)
推荐(0)
摘要:
使用for循环计算1-100的和,除了以3结尾的那些数。 package gdhgjh; import java.util.Scanner; public class hhjbhjb { public static void main(String[] args) { int sum=0; for 阅读全文
posted @ 2023-04-26 01:23
Berial127
阅读(27)
评论(0)
推荐(0)
摘要:
分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) 方法一: package gdhgjh; public class hhjbhjb { public static void main(String[] args) { int sum = 0 阅读全文
posted @ 2023-04-26 00:53
Berial127
阅读(39)
评论(0)
推荐(0)
摘要:
1、 输入年份月份,输出该月的天数(闰年2月29天,条件参考上机练习1) package erer; import java.util.Scanner; public class bfhjeb { public static void main(String[] args) { System.out 阅读全文
posted @ 2023-04-26 00:22
Berial127
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号