Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf1aad7d

Browse files
authored
Merge pull requestjsquared21#24 from jeremies/issue23
Fixesjsquared21#23 Display the first 50 random integers between 0 and 100
2 parents6e8e489 +d2f27e4 commitf1aad7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Exercise_09/Exercise_09_04/Exercise_09_04.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public static void main(String[] args) {
1212
// Displays the first 50 random integers between 0 and 100
1313
for (inti =1;i <=50;i++) {
1414
if (i %10 ==0)
15-
System.out.printf("%5d\n",randomNumber.nextInt(1000));
15+
System.out.printf("%5d\n",randomNumber.nextInt(100));
1616
else
17-
System.out.printf("%5d",randomNumber.nextInt(1000));
17+
System.out.printf("%5d",randomNumber.nextInt(100));
1818
}
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp