#PLEASE HELP- Beginner Task- Fibonacci Sequence

14 messages · Page 1 of 1 (latest)

red yewBOT
#

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.

#
How to Format Code on Discord
Markup

```cpp
int main() {}
```

Result
int main() {}
#
How to Format Code on Discord
Markup

```cpp
int main() {}
```

Result
int main() {}
vernal pasture
#

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.

queen cairn
#

it looks like youre hard coding each value

#

thats not ideal as it will be troublesome for larger calculations

vernal pasture
#

But can you please help me find out why every input equal to 4 or above is outputting multiple values?

vernal pasture
#

!solved

red yewBOT
#

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

red yewBOT
#

@vernal pasture

Please Do Not Delete Posts!

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.