A program that displays the recommended actions depending on the color of a traffic light. This program uses nested if statements.
|
Enter the colour of the light (R, G or Y): G GO! |
here why we are checking the colour in both capital amd small letters
ReplyDelete