Java Program to Find Fibonacci Series

Here is a simple java program to find fibonacci series…

class fibo
{
    public static void main(int range)
    {
        int first=0,second=1;
        int third=0;
        System.out.print(+first+”, “+second);
        for(int i=2;i        {
            third=first+second;
            System.out.print(“, “+third);
            first=second;
            second=third;
        }   
     }
}   

Add Comment