Fibonacci sequence – Example in language C


Another example of how to write a program that generates numbers in the Fibonacci sequence. Again using the C language.

The code is simple and goes straight to the point with explanatory comments.

Usually, this type of problem is proposed in computer courses and the purpose of this post is to present a way to solve it. There are other ways to solve this problem or to improve the code presented, so I hope you will not only copy and paste but try to do something better.

I hope I have been clear in the explanations.

Questions or suggestions, please contact us.

This code is available on Github:

With the contribution of Benjamin Zaremba.

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Time limit is exhausted. Please reload CAPTCHA.