title: How to get a FOR loop to add numbers
body: <p>I can't figure out how to get a FOR loop to add a series of numbers and OUTPUT a total. What am I do doing wrong?</p>
  
  <pre><code>public class FOR
          {
          public static void main (String [] arsg)
                  {
                  int yellow, sumt, sum;
  
  
                  sum=0;
                  sumt=yellow;
  
                  for (int number=1; number&lt;=4; number++)
                          {
                          sum=ConsoleInput.readInt("enter");
                          yellow=sum+number;
  
                          }
  
  
                  System.out.println("total is"+sumt);
                  System.exit(0);
                  }
          }
  </code></pre>