When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
14 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
```cpp
int main() {}
```
int main() {}
```cpp
int main() {}
```
int main() {}
My program is outputting multiple fibo values instead of just one for every input right now
Kind of inconsistent too, but as long as the next input is higher than the last number the program outputted, the code outputs real numbers from the fibonacci sequence.
it looks like youre hard coding each value
thats not ideal as it will be troublesome for larger calculations
I hard coded only n = 0-2 though, and n = -1 which is the sentinel value... No?
But can you please help me find out why every input equal to 4 or above is outputting multiple values?
std::cout is in the for loop
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity
@vernal pasture
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.