#include "stdafx.h"
#include <iostream>
usingnamespace std;
int main()
{
int Fib[25]; // I initialized the array here
int fib;
int fib[1] = 0;// right here is where I run into my problems I want the
first cell to be the number zero and the second to be
a 1.
int fib[2] = 1;
int fib3;
for (fib[3]=2; fib[3]<25; fib[3]++); // therefore so I can generate my numbers here.
{
fib[3] = fib[1] + fib[2];
fib[1] = fib[2];
fib[2] = fib[3];
}
for (fib<=0; fib<25; fib++)
cout<< "Value is " << fib3;
Im just stuck on putting the numbers into the array. Help? please thanks