The question proposed is...
You have 3333 lockers and 3333 kids
All the lockers start closed.
Kid 1 opens every locker
Kid 2 changes ever 2nd locker starting with the 2nd
kid 3 changes every 3rd locker starting with the 3rd
so on and so forth until all the kids have been through the lockers.
Question is how many lockers will be left open?
I am trying to do this in excel solely for the experiance of it and this is what I have so far...
I am just trying to write a value of 1 or currentcell +1 if the kid touches the lock then I can use odd and even to tell if the locker is open or closed.
I could just be completely out of track with this as this is my first time using VB and VB in excel.
Where I have
I was just trying to use column A row lockers what ever the current locker number may be.
Bookmarks