Find Fibonacci series for a given number.
This post content:-
Algorithm
Flowchart
C code
Output
Pdf notes
Algorithm:-
Step 1:- start.
Step 2:- declare variable num.
Step 3:- print Fibonacci series.
As follow:-
for(i=2;i<number;++i)
{
n3=n1+n2;
printf(" %d",n3);
n1=n2;
n2=n3;
}
Step 4:- END.
Flowchart:-
C code:-
Comments
Post a Comment