Search:

Type: Posts; User: CSUTD

Search: Search took 0.42 seconds.

  1. Replies
    9
    Views
    2,919

    Re: Cumulative sum of entries

    Can't use arrays. Even if we were I wouldn't know how. I am in an intro class. I only know to a certain point.

    Can I ask why you didn't think my code produced what it should.



    um, if you...
  2. Replies
    9
    Views
    2,919

    Re: Cumulative sum of entries

    This is my output:


    Enter some numbers: 2

    You entered numbers 2.
    Your total are 2
    Enter some numbers: 7

    You entered numbers 7.
  3. Replies
    9
    Views
    2,919

    Re: Cumulative sum of entries

    Is there a simpler way to print everything out on two lines?

    Example:
    You entered numbers 2,7, 3, and 0.
    Your totals are 2, 9, and 12.



    {
    Scanner keyboard = new Scanner...
  4. Replies
    9
    Views
    2,919

    Cumulative sum of entries

    I need a little help.

    Not sure where to go from here.



    public static void main(String[] args)
    {
    Scanner keyboard = new Scanner (System.in);
Results 1 to 4 of 4