سری فیبوناچی
#include <iostream.h>
#include <conio.h>
void main (void)
{
int L1=1,L2=1,L3,n;
cout<< "Enter Number: ";
cin >> n;
for (int i=3; i<=n; i++)
{
L3 = L2+L1;
L1 = L2;
L2 = L3;
}
cout<< "Result is: " << L3;
getch();
}