Write a program to print Fibonacci series.

Written by Sharad Raj on 13th of March, 2018

BASIC PROGRAMS   C LANGUAGE PROGRAMS

PROGRAM CODE

#include<stdio.h>

#include<conio.h>

void main()

{

int first=0,second=1,number,n,i;

clrscr();

printf("Enter the value of n : ");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

number=first+second;

printf("%d",first);

first=second;

second=number;

}

getch();

}