1.2 Display Binary Numbers (using a variable)

Block-based solution

View solution

This is just one of many possible solutions:

whenclickedsay1for1secssay2for1secssay4for1secssay8for1secssay16for1secs

Back to programming challenge

Extra Challenge

Display the numbers from largest to smallest (display numbers 16, 8, 4, 2 and 1).