Answer the question
In order to leave comments, you need to log in
How to write a program that prompts the user to enter the color of a traffic light?
Write a program that prompts the user to enter the color of a traffic light. If the entered color is "Green" - the word "Go" appears, and the color of the window changes to green. If the entered color is “Yellow”, the word “Wait” appears, and the color of the window changes to yellow. If the entered color is "Red" - the word "Stop" appears, and the color of the window changes to red.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question