User Profile

Collapse

Profile Sidebar

Collapse
krzemienski
krzemienski
Last Activity: Mar 11 '10, 11:21 PM
Joined: Mar 11 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • krzemienski
    replied to Running totals of variables in a loop.
    in Java
    Ok, thank you I figured it out,
    int total = 0
    needs to be befor the loop and I needed to use the total inside the loop to keep a running total adding n to it each time.
    See more | Go to post

    Leave a comment:


  • krzemienski
    started a topic Running totals of variables in a loop.
    in Java

    Running totals of variables in a loop.

    Hey I am having trouble with loops the problem is as follows;
    My program so far gets me to what I need which is the remainders which are the last digits of the 5 digit number inputted, I need a way for java to keep a running sum of all the remainders and then I need a new variable which is the sum of the remainders after going through the loop.
    Any help is greatly appreciated.

    mport java.util.Scann er;

    ...
    See more | Go to post
No activity results to display
Show More
Working...