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);

}
}
30 people found this useful
Thanks for the feedback!

Write a c program to calculate factorial of a number using stack 2write a c program to generate a Fibonacci series using stack number of Fibonacci series is input by the user?

  #include #include #include int stack[10],n=0; int fact(int); int pop(); void push(int); main() { int num; printf("\\n FACTORIAL USING STACK IMPLEMENT

Program in c to write Fibonacci series?

//This program will generate the Fibonacci numbers using recursion till a particular limit #include int fib(int); void main() { int limit; printf("Enter the limit"); scanf("%d

Write a program in C Sharp to print Fibonacci series using while loop?

//WAP to print fibonacci series using do-while loop.? using System; class Fibonacci { public static void Main() { int a=1,b=1; int sum=0; Console.Write("Enter Limit:");

Write an assembly language program to find Fibonacci series?

hi frenz here is an ALP on fibbonacci series...... source code: mov si,2000(2000 is a address location of si register) mov cx,05 (cx is a count register for how many values w