Program to display the Fibonacci series of last term upto 300.

Problem Analysis:

The problem is to display the Fibonacci series of last term upto 300.

 

Algorithms:

1.start.

2.Declare i,f=0,s=1,n.

3.n=f+s.

4.print f,s,n.

5.stark:

for (i=1;i<100;i++)

{ f=s;

s=n;

n=f+s;

if (n<300)

{ printf(“\f%d”,n);

go to stark

}

else goto step 6

6.Stop

 

Codes:

 

Outputs:

Compiling  , Debugging   and Testing

0 1 1 2 3 5 8 13 21 34 55 89 144 233

About Programmingfaster

We the teams of programming faster managed to provide an effective information about the codes of different programming languages.Hope you will learn and understand the codes fast and easy. It's absolutely free, expanding and precise. Our main target is to help those new starters and aid them as far as possible to pave their future in the area of programming. Hoping support and recommendations!
This entry was posted in C, precise examples and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *