#P87. 【例16.2】 开灯
【例16.2】 开灯
Description
Little Blue's light is controlled by a linear switch. Pulling once turns the light on, pulling again turns it off. The light is initially off.
Input a positive integer () representing the number of times Little Blue pulls the switch. Determine if the light is on or off after pulls.
Input Format
Input a positive integer representing the number of times the switch is pulled ().
Output Format
Output integer if the light is on, or integer if the light is off.
Sample
51
Related
In following homework: