Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
output2
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int n = 2; int s = 15; for (int k = 5; s < 30; k += n) { s = s + k; System.out.print(k + " "); } System.out.println(s); } }
run
|
edit
|
history
|
help
0
Print String in Reverse
practicecode
Project Euler #2
jb12.0 threads.enums
1.6
Геттеры и сеттеры для класса Dog
Coding Numbers - Duplicate - Array
Add Index of max number in an array
Sum of EVEN and ODD nubmers (11 grade)
Increment Operator