04 2021 档案

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