Search:

Type: Posts; User: javapenguin

Search: Search took 0.10 seconds.

  1. Replies
    39
    Views
    4,734

    [SOLVED] Re: A little assignment involving arrays.

    What would happen if you started with

    sum[thirteen] = multiply * (thirteen + 1);

    ?

    The first value of thirteen is 0, so sum[0] = multiply * 0 = 0 the way you have it. (I think Mr. 777 said...
  2. Replies
    39
    Views
    4,734

    [SOLVED] Re: A little assignment involving arrays.

    I'm guessing this is what you meant.

    for (int i=0; i < 400; i++)
    {
    sum[i] = 13 * (i+1);
    }
Results 1 to 2 of 2