JAVA
java
1
2
3
4
5
6
7
8
9
10
class err_test
{
// trying to single-line a Fibonacci sequence. :P
public static void main(String[] args)
{
for (int i=1, j=1; i>0; i+=j, j=i-j)
System.out.print(i + ", ");
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run