Okay here's what I have... it's a start. My only problem is when I run the program the sequence does not print the first 1 in the 1, 1, 2, 3, 5, 8,... it will only print 1, 2, 3, 5, 8,...
I believe it has something to do with "final" on the end of my code... any ideas?
~Ty
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[]){
int initial = 0, secondary = 1, final, N, count = 10;
cout << "Enter in amount of numbers for Fibonacci to calculate: ";
cin >> N;
for(count = 1; count <= N; count++){
final = initial + secondary;
cout << final << endl;
initial = secondary;
secondary = final;
}
system("PAUSE");
return 0;
}