Fibonacci series is a sequence of numbers in which next number in the sequence is obtained by adding previous two numbers.

### Source Code

#include<stdio.h> //Fibonacci Series - FScOnline.info int main() { int first=0,second=1,next,i,n; printf("Enter how many elements: "); scanf("%d",&n); printf("\n%d %d",first,second); for(i=2;i<n;++i) { next=first+second; printf(" %d",next); first=second; second=next; } return 0; }