I need to display 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 … I “must” use the “for” …This is what I have but it only counts by two. I don’t want the answer…however can you please give me some clues on the proper way to add the prior two numbers to get the needed sum?
#include <iostream>
using std::cout;
using std::endl;
//
int main()
{
int count = 0;
for ( int count = 1; count <= 55; count = count + 2)
cout << count << endl;
return 0;
} //end of main function