In this question CodeChef: Practical coding for everyone
My solution was CodeChef: Practical coding for everyone
This and I also got correct response through my compiler but codechef deemed it to be incorrect . What is my mistake
Initialise c=0 inside the while loop at the start.