FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ProjectEuler-Java/Sol1.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
/
Sol1.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (11 loc) · 274 Bytes
Breadcrumbs
ProjectEuler-Java
/
Sol1.java
Copy path
File metadata and controls
12 lines (11 loc) · 274 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
public
class
Sol1
extends
BaseSolution
{
public
void
runSolution
() {
int
sum
=
0
;
for
(
int
i
=
0
;
i
<
1000
;
i
++) {
if
(
i
%
3
==
0
||
i
%
5
==
0
) {
sum
+=
i
;
}
}
System
.
out
.
println
(
sum
);
}
}
Back
|
FazBrowse Home
|
New Git URL