Gambas India Forum

Forum breadcrumbs - You are here:ForumRepository: Submit your code100 doors

100 doors

Quote
V doors = [0B] * 100
L(i) 100
   L(j) (i .< 100).step(i + 1)
      doors[j] = !doors[j]
   print(‘Door ’(i + 1)‘: ’(I doors {‘open’} E ‘close’))