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

Commit21774d5

Browse files
authored
Update Exercise_05_12.java
1 parent1fcbde2 commit21774d5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎Exercise_05/Exercise_05_12/Exercise_05_12.java‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@ public static void main(String[] args) {
77
intn =0;// Start n at 0
88

99
// Find the smallest n such that n^2 > 12,000
10-
<<<<<<<HEAD
1110
while (Math.pow(n,2) <=12000) {
12-
=======
13-
while (Math.pow(n,2) <12000) {
14-
>>>>>>>f7c770b17f3c46acc01e28b1b7c3742d6c7130d0
1511
n++;// Increment n
1612
}
1713

1814
// Display result
1915
System.out.println(
2016
"The smallest integer n such that n^2 is greater than 12,000: " +n);
2117
}
22-
}
18+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp