Jump to content

Adding data of each loop


Recommended Posts

Hi friends,

I am stucked with some logical stuff,my program requires that the data be added every time it enters in to the loop.

like 1st loop value of variable is 5

2nd time this value shud be added to the new value of variable say for example this time value of variable is 10 so ans shud be 15 ,(5 previous value + 10 present value of a variable )

this procedure repeats based on a loop count.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.