void fibseries() { clrscr(); { const unsigned long limit = 4294967295; unsigned long next=0; //next-to-last term unsigned long last=1; //last term int time; cout<<"Enter how long the bacteria reproduces for (minutes):"<<endl; cin>>time; while( next < time) { cout << last << " "; //display last term int sum = next + last; //add last two terms next = last; //variables move forward last = sum; // in the series } cout << endl; } _getch();

btw like i said i was in the middle of it soits kinda ugly and incomplete sorrry anyways heres the originalcode just to help

int main() { const unsigned long limit = 4294967295; unsigned long next=0; unsigned long last=1; while( next < limit / 2 ) { cout << last << " "; long sum = next + last; next = last; last = sum; } cout << endl; return 0;