Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
program
//'main' method must be in a class 'Rextester'. //Compiler version 1. class Rextester { public static void main(String[]args) { int i, sum=0; for (i=1;i<1000;i++) { if ((i%3==0)||(i%5==0)) sum=sum+i; } System.out.println(sum); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Find Median in Large File of Integers
Cola Machine
Random number
Switch case example
A.K.JAVA_EXPERIENCE_1
Strings Ops
Remove unbalanced parentheses in a given expression
anonymous abstract class
PE #3
Assignment for Web Software Developer position
Please log in to post a comment.