上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 32 下一页
  2021年9月1日
摘要: 1 /* 2 * 从键盘读入学生成绩 找出最高分 并输出学生等级成绩 3 * 成绩>=最高分-10 等级为’A‘ 4 * 成绩>=最高分-20 等级为’B‘ 5 * 成绩>=最高分-30 等级为'C' 6 * 其余 等级为’D‘ 7 * 8 */ 9 10 11 public static void 阅读全文
posted @ 2021-09-01 13:02 Bytezero! 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) 2 { 3 int[] arr = new int[] {8,6,3,1,9,5,4,7}; 4 int[] index = new int[] {3,2,7,0,4,5,1,6,3,7,3}; 5 String te 阅读全文
posted @ 2021-09-01 11:58 Bytezero! 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-09-01 11:32 Bytezero! 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) 2 { 3 int[] arry = new int[4]; //int 默认值0 //浮点型 0.0 4 for(int i =0; i < arry.length;i++) 5 { 6 System.out.pri 阅读全文
posted @ 2021-09-01 11:05 Bytezero! 阅读(360) 评论(0) 推荐(0) 编辑
  2021年8月29日
摘要: 1 public class FamliyAccount 2 { 3 4 public static void main(String[] args) 5 { 6 // TODO Auto-generated method stub 7 8 boolean isFlag = true; 9 //用于 阅读全文
posted @ 2021-08-29 10:28 Bytezero! 阅读(152) 评论(0) 推荐(0) 编辑
  2021年8月28日
摘要: 1 //100以内的质数的输出(从2开始,到这个数-1结束为止,都不能被这个数本身整除) 2 boolean isFlag = true; //标识i是否被j除尽,修改其值 3 4 for(int i =2; i<=100;i++) 5 { 6 for(int j = 2;j < i;j++) 7 阅读全文
posted @ 2021-08-28 18:22 Bytezero! 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 //9*9乘法表 2 3 for(int i =1;i<10;i++) 4 { 5 for(int j = 1;j <=i;j++) 6 { 7 System.out.print(i+"*"+j+"="+i*j+"\t"); 8 } 9 System.out.println(); 10 } 阅读全文
posted @ 2021-08-28 16:28 Bytezero! 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 3 * 4 ** 5 *** 6 **** 7 ***** 8 9 */ 10 11 for(int i = 1; i <=5;i++) 12 { 13 for(int j = 1;j<=i;j++) 14 { 15 System.out.print("*"); 16 } 17 Sys 阅读全文
posted @ 2021-08-28 16:15 Bytezero! 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 从键盘输入不确定的整数 并判断读入的整数和负数的个数,输入0时候结束 3 * 4 */ 5 6 Scanner scan = new Scanner(System.in); 7 8 int posituveNumber = 0; //记录正数的个数 9 int negativeN 阅读全文
posted @ 2021-08-28 15:39 Bytezero! 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1 //输入两个正整数m和n,求其最大的公约数和最小公倍数 2 //12和20的最大公约数是4,最小公倍数是60 3 4 Scanner scan = new Scanner(System.in); 5 6 System.out.println("请输第一个正整数:"); 7 int m = sca 阅读全文
posted @ 2021-08-28 14:43 Bytezero! 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 32 下一页