摘要: public static void main(String[] args) { int[] b = new int[10];//新建一个存放十个数的数组 for(int i=0;i<10;i++) { b[i]=(int) (Math.random()*100);//随即从0~100中生成10个数 阅读全文
posted @ 2020-10-21 10:34 一坐三十年 阅读(185) 评论(2) 推荐(1) 编辑
摘要: public static void main(String[] args) { for(int i=1;i<10;i++) { for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+j*i+" "); } System.out.println(); 阅读全文
posted @ 2020-10-21 10:27 一坐三十年 阅读(55) 评论(0) 推荐(0) 编辑