8 lines
155 B
Julia
Raw Normal View History

2015-08-08 21:04:55 -07:00
doors = falses(100)
for a = 1:100, b in a:a:100
doors[b] = !doors[b]
end
for a = 1:100
println("Door $a is " * (doors[a] ? "open" : "close"))
end