Your result

kody
Join Kody

Stabilize the reactor

Change activity
Assignments and order

Stabilize the reactor

Goal

Turn 3 into 43 in at most 5 instructions using the available operations.

Preview board

Not run

Add instructions, then run your pseudocode.

Repair mission

1 edit available

Run or step through the broken pseudocode. Replace one line to reach the goal.

Pseudocode

0 / 5 instructions

    Ready to run.
    How it works
    Assignments and order

    Reason about how assignment order changes a value.

    Key rule

    A variable stores one value. Add, subtract and multiply replace that value in instruction order.

    Worked example
    Different example: value = 4; value = value + 2; value = value * 3 gives 18. Reversing these operations gives 14.
    Win condition

    Complete the pseudocode and concept check.

    Show a hint

    Work backward: which operation could produce 43 from a smaller number?

    Related modules
    Edit text

    Enter one instruction per line. You can use the displayed pseudocode or commands from the reference.

    Command reference

    Return to Tower level 3

    WELCOME TO KODY

    A little play. A lot of possibility.

    I’m Kody, your coding companion. Your adventure is ready. Let’s find our way around.

    Log in