Lesson goal: LED visuals for correct or incorrect math problem


In the last lesson, you learned how to turn on LED on and off using digitalwrite, with a bit of set up from pinmode. In this lesson, lets make a math-test program that asks students a math problem. If they get it right, we'll turn on a green LED. If wrong, a red LED.

Now you try. Go for it! Build us a right/wrong light-up math tester!

Type your code here:

See your results here: