Hello Arduino Community!
For a school project, I need prompt the user for a response and then send another prompt for another response depending on the initial response to the initial response through Serial.
For example:
The Serial Monitor asks "Blue, Red, or Green?"
If you say Blue, Serial Monitor asks "1, 2, or 3"
If you say Red, Serial Monitor asks "4, 5, or 6"
If you say Green, Serial Monitor asks "7, 8 or 9"
(ask as in Serial.println(" "))
How would I go about doing this?
If possible, could somebody please show me an example of this in code?
Thank you so much!