摘要:
Random random = new Random(); int[] number = new int[10]; for (int j = 0; j < 10; j++) {#指定了随机数范围0~100; number[j] = random.nextInt(100); } int sum = 0 阅读全文
posted @ 2024-06-12 16:00
GOZO
阅读(29)
评论(0)
推荐(0)
摘要:
Random random = new Random();int result = 1; int i= 1;while (i<=5){ result*=i; i++;}System.out.println(result); 阅读全文
posted @ 2024-06-12 15:57
GOZO
阅读(39)
评论(0)
推荐(0)

浙公网安备 33010602011771号