Fibonnaci is not passing test case

Hi ,

test is not passing test case. please help me to find out the issue
where did I miss .

https://ide.codingblocks.com/#/s/17272

Thanks
Naresh

You have made a silly error, otherwise our code was perfectly fine. https://ide.codingblocks.com/#/s/17659

1 Like

Thanks for reply, but still I am facing the same issue online judge is not accepting all test cased :frowning_face:

You are referring to which question?? Fibonacci till N or N terms??

https://hack.codingblocks.com/contests/c/474/158

this is problem I am referring to , pls let me know

For this problem, you have to print Fibonacci till n. Just put a condition while c<=n. No need of iterating from i to n in this ques.

still falling one tests

https://ide.codingblocks.com/#/s/18782