FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ProjectEuler-Java/Sol9.java at master · JoshP/ProjectEuler-Java · GitHub
JoshP
ProjectEuler-Java
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
ProjectEuler-Java
/
Sol9.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (14 loc) · 478 Bytes
Breadcrumbs
ProjectEuler-Java
/
Sol9.java
Copy path
File metadata and controls
15 lines (14 loc) · 478 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public
class
Sol9
extends
BaseSolution
{
public
void
runSolution
() {
for
(
int
a
=
1
;
a
<
997
;
a
++) {
for
(
int
b
=
2
;
b
<
998
;
b
++) {
for
(
int
c
=
3
;
c
<
999
;
c
++) {
if
(
a
+
b
+
c
==
1000
&&
Util
.
isTriplet
(
a
,
b
,
c
)) {
System
.
out
.
println
(
a
+
" "
+
b
+
" "
+
c
);
System
.
out
.
println
(
a
*
b
*
c
);
}
}
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL