Print fibonacci series

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

http://ide.codingblocks.com/#/s/14667

My output is correct but test cases are failing.

You are required to print fibonacci terms which are less than equal to ā€˜nā€™. But, you are printing first ā€˜nā€™ fibonacci terms.

So the condition should be
while(i<=n)

It should be c<=n (i<=n, you are already doing)

OK. Got it.
Thank You.