#P118. 练20.3 开灯关灯
练20.3 开灯关灯
Description
All the lights in Nick's house use toggle switches: pull once to turn on, pull again to turn off. Xiaohua found it fun and pulled the switch 5 times in a row. Is the light on or off now? (Before pulling, the light is off.) Write a program to determine whether the light is on or off.
Input Format
None
Output Format
One line: if the light is on, output "Light On"; otherwise, output "Light Off".
Sample
NoneLight On
Related
In following homework: