void main() {
    int total = 0;

    for (int number = 1; number <= 100; number++) {
        total += number;
    }

    IO.println("The numbers 1 to 100 add up to " + total + ".");
}

// From Groundwork, chapter 5 (ch05-repetition), box 9.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch05_09.java
