Programming puzzle on a yoghurt box

It is common in Sweden to have milk and yoghurt packaged in carton boxes (think: Tetrapak) and print puzzles on the back for children. When I flattened such a box for throwing in the garbage the other day, I noticed this puzzle:

Programming puzzle on a yoghurt box
Programming puzzle on a yoghurt box

Translated for you:

Coding is controlling

Programming, or writing code, is about giving super easy orders step by step. Computers, and robots, do exactly as they are told.

Which code shall the robot follow in order to come to the dragon? Code A, code B and code C are three programs and one of them is obviously the right program to guide the robot.

I’ll leave it up to you to translate each alternative and solve the puzzle!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.