A first-aid kit has a fixed limit of twelve slots; seven are filled. Calculate the free slots inside a small block. After that block, you can still print the limit, but a name created inside it is no longer available.
main, declare const int slot_limit = 12 and int filled = 7. In an inner block calculate int free_slots from those names and print Free slots: 5. After the block print Slot limit: 12. End both lines with newlines.slot_limit remains available for the second line because you declared it outside the inner braces. Keep free_slots inside.
Declare the fixed value outside the inner braces so both prints can access it.