fixing answers

This commit is contained in:
Peli de Halleux 2016-03-30 14:19:51 -07:00
parent f00491df52
commit 7cbba949db
1 changed files with 6 additions and 6 deletions

View File

@ -23,10 +23,10 @@ We create a **variable**, `count` to keep track of the current count. The number
## 3. Draw which LEDs are ON after running this code and pressing button "A" once. Explain you chose to draw that number
```blocks
let count_ = 0
let count = 0
input.onButtonPressed(Button.A, () => {
count_ = count_ + 1
basic.showNumber(count, 150)
count = count + 1
basic.showNumber(count)
})
```
@ -39,10 +39,10 @@ We are only pressing on button pressed once. So the number to display on the mic
## 4. Draw which LEDs are ON after running this code and pressing button "A" three times. Explain you chose to draw that number
```blocks
count_ = 0
let count = 0
input.onButtonPressed(Button.A, () => {
count_ = count_ + 1
basic.showNumber(count_, 100)
count = + 1
basic.showNumber(count)
})
```