Write a test case for Fibonacci series?

Questions by prash036   answers by prash036

Showing Answers 1 - 1 of 1 Answers

Test case for fibonacci series can be
1.When an zero is entered it should return a zero.
2.When a negative integer is entered it should not accept the value and should return an error msg.
3.When a positive value is entered then it should return the output.
Let i entered n then its output should be. F(n-1)+F(n-2).

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions