魔幻的猫头鹰

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

04 2021 档案

摘要:package test; import java.util.Scanner; public class test { public static void main(String args[]){ //编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值 阅读全文
posted @ 2021-04-23 17:28 魔幻的猫头鹰 阅读(102) 评论(0) 推荐(0)

摘要:package test; public class test { public static void main(String args[]){ //编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 int arr[] ={10,20,30,40, 阅读全文
posted @ 2021-04-16 15:20 魔幻的猫头鹰 阅读(61) 评论(0) 推荐(0)

摘要:package test; public class test1 { public static void main(String args[]){ //使用for循环计算1-100的和,除了以3结尾的那些数 int sum = 0; for(int x = 1;x<=100;x++){ if(x% 阅读全文
posted @ 2021-04-09 20:29 魔幻的猫头鹰 阅读(209) 评论(0) 推荐(0)

摘要:package test; public class test { public static void main(String args[]){ //分别用for循环,while循环,do循环求1到100之间的所有被3整除的和 int a = 1; int b = 100; while(a<=b) 阅读全文
posted @ 2021-04-07 20:39 魔幻的猫头鹰 阅读(57) 评论(0) 推荐(0)