ScratchData LogoScratchData
Back to swasticodes's profile

Monkey Puzzle Solution

SWswasticodes•Created May 26, 2023
Monkey Puzzle Solution
0
0
31 views
View on Scratch

Instructions

Double Click the Green Flag! This is a simulated solution to the problem given below: At a place there are 100 Doors and 100 Monkeys each monkey is holding 1 Key. The Monkey can either open a door or close a door.At the very start all doors are closed. The first monkey comes and opens all the doors that are numbered with the multiples of one up to 100 (i.e. 1,2,3...100). The second monkey comes and opens all the doors that are closed, numbered with multiples of two up to 100(i.e. 2,4,6...100) and closes all that are open.This cycle continues till all hundred monkeys have opened or closed the doors. The question is how many doors will be open at the end and which ones? The answer is in this project. You can also customize the Speed(in s) of the Monkey.

Project Details

Project ID857234481
CreatedMay 26, 2023
Last ModifiedJanuary 13, 2025
SharedMay 27, 2023
Visibilityvisible
CommentsAllowed