Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
output1
//'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 h=0, f=1, g=1, i=5; for (int j = 1; j < i; j++) { h = f * g; f = g - 1; g = h + 1; System.out.print(h + ", "); } System.out.println(f + ", " + g); } }
run
|
edit
|
history
|
help
0
Magic No.
Rextester.java
assign
My date and time
1 e
Max in 2D array
Parse and flatten string
Display Page (Pagination)
hello_world
practicecode