What would you like to do?

Write a Fibonacci function then takes an input from the user in main program and pass to function which prints Fibonacci series up to this number in c language?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.

Would you like to make it the primary and merge this question into it?

exists and is an alternate of .

//program to find the fibonnacci series of n numbers.
#include <stdio.h>
void fibo(int);
void main()
{
int iLimit;
printf("Enter the number till which the fibonnacci series should be printed.");

scanf("%d",&iLimit);
fibo(iLimit);
}

void fibo(int iLimitnum)
{
int inum1,inum2,inum3;
int iadd;
inum1=0;
inum2=1;
int i;
printf("0 ");
for (i=0; ;i++)
{
iadd=inum1+inum2;
inum1=inum2;
inum2=iadd;
if(inum1 > iLimitnum)
break;
printf("%d ", inum1);

}
}
Thanks for the feedback!

C program to find Fibonacci series?

include #include void main () { int x,y,z,i; clrscr(); printf("Enter 1st Term: "); scanf("%d",&x); printf("Enter 2nd Term: "); scanf("%d",&y); printf("Seri

Can you write a program to print the Fibonacci series in php?

  The Fibonacci sequence uses recursion to derive answers. It is defined as:   F0 = 0 F1 = 1 Fn = F(n - 1) + F(n -2)   To have this sequence printed by a php scr

How do you write a program Fibonacci series using for loop in C?

include #include main() { int a=0,b=1,c,i,n; clrscr(); printf("enter the limit of series\\n"); scanf("%d",&n); if(n==0) printf("%d\\n",a); else printf("%d\\n%d\\n",a

Write a program to generate the Fibonacci Series?

include #include main() { int n,i,c,a=0,b=1; printf("Enter Fibonacci series of nth term : "); scanf("%d",&n); printf("%d %d ",a,b); for(i=0;i //these memory

Write a Program for generating Fibonacci series in 8085 microprocessor program language?

Source program :    MVI D, COUNT : Initialize counter  MVI B, 00 : Initialize variable to store previous number  MVI C, 01 : Initialize variable to store current numbe

Write a C- program to print Fibonacci series using do while loop?

Before jumping to program we will look how Fibonacci series are generated. Fibonacci series is linear sequence of integers, there first one is 0 and second one is 1. Now all