Please point out error in this ode and correct it as i am unable to solve further and dont know what to di\

hi @akshat1409 updated https://ide.codingblocks.com/s/665725 and commented

All i notice is that u took loop from i rather than n directly . Why did u do that? n1 stays constant in int main anyways. why is it important to take i = n1?

hi @akshat1409,
you need to loop from n1 to n2 so used a separate variable for that

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.