CJCoding With Joseph

Traffic Light Action

Read a traffic light color (red, yellow, or green) from input and print the action with a switch: red prints Stop, yellow prints Slow down, and green prints Go. For example, for input green, print:

Go

Expected Output:

Go
Topics:
If Statements
๐Ÿ“ฅ Auto-Input:
green
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.