Your goal is to calculate the sum of Fibonacci series from n th term to m th term (including both terms).
- No use of
/ * %
or mathematically what they are in your language of choice. - No use of special functions or code language specialized in doing so !
- You have to produce the series yourself and not by any special function or code language.
OUTPUT
#1
0 5
series : 1 1 2 3 5 8
sum : 20
#2
2 5
series : 2 3 5 8
sum : 18
Best of luck :]
nth to mth (including both)
. So0 5
would imply 6 terms; similarly2 5
would imply 4 terms. Could you edit your question to make it consistent? \$\endgroup\$No use of / * %
- which are useless anyway, you probably mean+
and-
. \$\endgroup\$fibonacci is:question
into the search.) Did you consider giving a different number sequence a look in? :) \$\endgroup\$