+ 1

How to calculate sum of fibonacci series?

18th Oct 2021, 2:49 PM
Drishti Gupta
Drishti Gupta - avatar
6 Respuestas
+ 6
1. Make a function that calculates the Fibonacci numbers 2. Sum the numbers Can you please tag the relevant programming language and link your code?
18th Oct 2021, 2:51 PM
Lisa
Lisa - avatar
+ 5
You could make another variable int total = 0 Then, in each iteration of the loop you add total += sum.
18th Oct 2021, 3:03 PM
Lisa
Lisa - avatar
+ 3
Kindly share your attempt so that we can change it appropriately!!! Regards
18th Oct 2021, 2:54 PM
Saurabh
Saurabh - avatar
+ 2
Thanks a lot!!
18th Oct 2021, 4:13 PM
Drishti Gupta
Drishti Gupta - avatar
- 1
18th Oct 2021, 2:56 PM
Drishti Gupta
Drishti Gupta - avatar