Part 5: Choose My Clothing!
Putting it all together!
Putting It All Together
We've learned quite a bit up to this point and now it's time use all of our new skills to write a program that will detect if a number is even or odd.
We are going to test a range of numbers, so we need to loop from a starting number to a stopping number.
First create a number variable called
testNumber and set it to your starting number.
Next, set up a repeat loop using
repeat until and for the condition specify the number to stop at.
Finally, don't forget to include
end to mark the end of the loop. Move on to the next slide when you're done.
Try it Yourself
In the next tutorial, we will discuss Hour of Code Part 6, which describes first steps in Quorum.