04 2021 档案
摘要:1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? package chap7; public class text1 { public static void main(String[] ar
阅读全文
摘要:1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package chap6; public class text1 { public static void main(String[] args) { // 1.编写一个简单程序,要求数组长度为
阅读全文
摘要:上机练习:1.使用for循环计算1-100的和,除了以3结尾的那些数 package chap5; public class text2 { public static void main(String[] args) { // 使用for循环计算1-100的和,除了以3结尾的那些数 int sum
阅读全文
摘要:1.分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package chap4; public class text1 { public static void main(String[] args) { // TODO Auto-gene
阅读全文