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?

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;
inum1=0;
inum2=1;
int i;
printf("0 ");
for (i=0; ;i++)
{
inum1=inum2;
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

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

no...i want complete c code using stack

# Write a c program to print fibonacci series using do while loop?

include using namespace std; #define MIN 1 #define MAX 1000000 int main() { int num; char c; do { cout c; } cout > num; } if(num) { cout

# Write a recursive function that will generate and print first n Fibonacci numbers?

include #include int fab(int); main() { int n,i; printf("enter the value of n\\n"); scanf("%d",&n); for(i=1;i

# Write a program in C programming find the Fibonacci series?

This program prints the Fibonacci series #include #include void main(void) { int i,j,k,n; clrscr(); i=0; j=1; printf("%d %d ",i,j); for(n=0;n

# Write a function to code the Fibonacci series in LISP programming language?

(defun fibo (n) (if (< n 2) n (return (+ (fibo (- n 1)) (fibo (- n 2))))))

# How do you write a program to print Fibonacci series of n numbers using recursion in cpp?

include unsigned fib (unsigned term, unsigned a=0, unsigned b=1) { if (term

# 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 by using while statement?

  #include #include void fibonacci(int x) { int f=0,m=-1,n=1,i=0; while(i

# 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

# How do you write a c plus plus program to print Fibonacci series?

include using namespace std; int main() { cout

question clarity

# Fibonacci series program using function in c?

include #include int fib(int a); main() { int a; clrscr(); scanf("%d",&a); for(int i=0;i

# 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

# Write a program in c plus plus print non Fibonacci numbers?

include void main() { int a,b,i=1; coutc; cout

# Write a C program to generate and print the first N Fibonacci numbers?

// recursive method unsigned long fib (unsigned long n) { if (n 1) return 0; if (n 2) return 1; return fib (n-1) + fib (n-2); } // iterative method unsigned lo

# How do you generate Fibonacci series in c programming language?

The main logic/source code is below: while(1) {f3 = f1 + f2;if(f3 > n)break;printf("%d\\n", f3);f1 = f2;f2 = f3;}