Calculating Fibonacci Number accurately in C++?

后端 未结 3 1365
甜味超标
甜味超标 2021-01-03 06:09

I am really confused. I am trying to calculate Fibonacci numbers, but as they get larger and large the numbers start to become wrong. and I do not know why.

How do y

3条回答
  •  难免孤独
    2021-01-03 06:51

    Have you tried including rather than , math.h might not have an overloaded version of sqrt as it is for C

提交回复
热议问题