DP

Pages: 12
@counter strike
it gives answer of 70282652 but answer is 26030209
This is wrong because u have to add f(10)+f(11)+f(12)+.....+f(99).
In your code you are doing only f(10)+f(99) and also u should take care of overflow for every iteration.
Topic archived. No new replies allowed.
Pages: 12