Print Fibonacci Series - Java Quiz Question


Write a program to print Fibonacci series with the given size.

Input (Integer) Printed Output
4 1,1,2,3,
7 1,1,2,3,5,8,13,
12 1,1,2,3,5,8,13,21,34,55,89,144,



class PrintFibanocciSeries
{
    public static void main(String s[])
    {
        fibanocciSeries(7);

    }


    public static void fibanocciSeries(int size)
    {
    }

}