CodeField

Repeat it

Task 3 of 7

Order the lines

Put the lines in order so the program reads a whole number n and prints the sum of the whole numbers from 1 to n. One line is not needed.

Your program

Empty. Tap a line in Lines to use to add it here.

    Lines to use

    Tips

    • Think about what must happen first, then what uses it.
    • A line that ends with a colon owns the indented lines under it.