Java Programming, 100 locker problem
807588Jun 22 2009 — edited Jun 23 2009hello i am intro to programming in java.. i have a problem from my teacher. 100 lockers are all open in an array. 1 person goes in changes all to closed. 2 every other. 3 every third, 4 every fourth and so on until 100. could some1 give me a walktrhough for some help. i understand i have to create the array. and i understand 0= open 1= closed. n= 1 (student).. n++ but other than that i am kind of stuck!.. any help and i would appreciate it.
thanks!