Demo entry 6782244

Fibonacci's code

   

Submitted by Emilio Dalla Torre on Jan 11, 2019 at 14:35
Language: Java. Code size: 176 Bytes.

class Main {
	public static void main(String[] args) {
		new Main().fib(1, 1);
	}
	void fib(int a, int b) {
		int c = a + b;
		System.out.println(c);
		fib(b, c);
	}
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).