website statistics

Computer Science


Anitha is very fond of clocks that ring every hour and she purchased a new one for her new flat. She enjoyed listening to the tick tock ringing sound of the clock during the daytime. But in the night time, her infant woke up every time the clock rang. As it is a programmable clock, she decided to program the clock in such a way that it didn't ring between 8 p.M and 7 a.M (both inclusive). Given the time in ist as input, write a program to find whether the clock should ring or not.

1 Answer

You May Be Interested