help reqd for fibonacci series program

#include <iostream>
void main()
{


int i;
int j=0,n;
cout<<"enter number of terms you want in Fibonacci series";
cin>>n;

for(i=0;i<=n;i++)
{
j=j+i;
cout << j << endl;
}
getch();
}

What should I add on to this program to get the fibonacci series?
Please, use the code tags and informative indentation: http://www.cplusplus.com/articles/jEywvCM9/

You have to start by looking at how a term in the series is calculated.
What do you need in order to calculate the nth term?
Topic archived. No new replies allowed.