Pages
▼
Write a C program to print given number of terms of a Fibonacci series.
Q 1 : Write a C program to print given number of terms of a Fibonacci series.
Solution :
#include<stdio.h>
void main()
{
int a,b,c;
c=1;
a=0;
b=0;
while(c<200)
{
a=b;
b=c;
c=a+b;
printf("%d\t",a);
}
Download Source Code
No comments:
Post a Comment