Solving same problem using foor loop

i am trying to solve the same problem using for loopbut cannot…
https://ide.codingblocks.com/s/64765
suggest the changes …with proper comments plz.

post the question link too.

Hi Shubham, can you please post the question link in which you are having doubt :slight_smile:

dont worry that doubt has been solved ,i figured it out. thanks.

Hey Shubham,

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.