Thursday, 27 August 2020

Fibonacci series.

So now we are going to see about fibonacci series program.
Lets type...
Before typing please share this website and increase this blog views.

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,i,n;
clrscr();
a=0;
b=1;
printf("Enter the number");
scanf("%d",&n);
for(i=0;i<n;i++)
{
c=a+b;
printf("%d\n",c);
a=b;
b=c;
}
getch();
}

Try this program and enjoy.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...