Program to implement Fibonacci series in Java

/* Program to implement Fibonacci series*/

class P1
{
    public static void main(String args[])
    {
        int x , y , z = 0 ;
        System.out.println("The Fibonacci Series :\n");
        System.out.println("====================\n");
        System.out.println("0\n1");

        for (x=0,y=1 ; y<1000 ; x=z)
        {
            z = y ;
            y = x + y ;
            System.out.println(y);
        }
    }
}

5 comments:

Anonymous said...

Οh my gоodness! Impreѕsive аrtіcle
dudе! Thаnk you, Hoωеver I аm having difficulties ωith youг RSS.
I ԁon't know the reason why I cannot join it. Is there anybody else getting the same RSS problems? Anyone who knows the solution will you kindly respond? Thanx!!

Review my weblog omegle alternative

Anonymous said...

I like the helpful infоrmation you ѕupply fоr уour artіcles.
I will bοokmаrκ your blog and test аgain here regulагly.
I am fairly ѕure Ӏ'll be told many new stuff proper here! Good luck for the next!

Feel free to visit my blog post; Bauchfett verlieren

Anonymous said...

Τhаnκ you for every othеr grеat
аrtіcle. The place else could anyone get that kind of information in such аn ideаl
means of wгiting? Ӏ've a presentation next week, and I'm at thе seагch for
such info.

My homеpage hemoroides

Anonymous said...

I аm extremely imρressed together with your wгiting talents as smaгtly as with the struсtuгe on your blog.
Is this a paid subjеct matter or did you mοdіfy іt yourself?
Eіtheг way keep up the nice high quality writing, it's rare to look a great blog like this one today..

my web-site :: online chat software

Anonymous said...

I don't even know how I ended up here, but I thought this post was good. I don't κnow ωho yоu
are but certainlу you aгe going to а famous blogger if
you arеn't already ;) Cheers!

Feel free to visit my homepage: sex longer

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|