update quizzes

This commit is contained in:
Michael Elliot Braun
2016-03-30 13:41:01 -07:00
parent 085af70db3
commit 899183f8f4
11 changed files with 67 additions and 55 deletions

View File

@ -18,13 +18,13 @@ An if statement will conditionally run code depending on whether or not a condit
## 2. Create a Variable called ``x`` and assign it to a random number between 0 and 2.
```
```blocks
let x = Math.random(3)
```
## 3. Write the 'if statement' to check if ``x`` is equal to 2. Inside the 'if statement', display the string "Yes".
```
```blocks
if (x == 2) {
basic.showString("Yes", 150)
}
@ -32,7 +32,8 @@ if (x == 2) {
## 3. Write the 'if statement' to check if ``x`` is equal to 1. Inside the 'if statement', display the string "No."
```
```blocks
let x = Math.random(3)
if (x == 2) {
basic.showString("Yes", 150)
} else if (x == 1) {
@ -42,7 +43,8 @@ if (x == 2) {
## 5. Write the code to display the string "I don't know" if the Variable ``x`` is neither 2 nor 1.
```
```blocks
let x = Math.random(3)
if (x == 2) {
basic.showString("Yes", 150)
} else if (x == 1) {