Editor

Skip What Is Not a Number

Rearrange the lines · Intermediate · about 6 min

This program adds up a list of entries typed into a form, but some of them are not whole numbers. It skips those, says which ones it skipped, and adds up the rest. Its lines are mixed up: put them back in an order that prints exactly the output below. Each line keeps its indentation, so you only choose the order.

Example

In the right order, the program prints:

Skipped: seven
Skipped: 4.5
Total: 42

Your program

0 of 8 placed

Add the first line from the blocks.

Blocks

8 blocks still to place
The solution opens after your first Check.