Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java problem

Name: Anonymous 2007-05-08 13:00 ID:q5GcBAft

I am not getting this, "i remainder 10 == 0"
--------------------------------------------------

What are the values of i and sum after this code is executed?

    int sum = 0;
    int i = 0;

    for (i=0; i<40; i++)
    {
        if ( i % 10 == 0)
            sum += i;
    }
    System.out.println (“The sum is  “ + sum);


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List