package rebelsky.exam1; import java.io.PrintWriter; import java.io.BufferedReader; import java.io.InputStreamReader; public class TestFib { public static void main(String[] args) throws Exception { PrintWriter pen = new PrintWriter(System.out, true); for (int i = 1; i < 200; i = i+5) { Fib.reset(); pen.println("Fib(" + i + ") = " + Fib.fib(i)); pen.println(" Computation took " + Fib.getCalls() + " recursive calls"); } } } // class TestFib