Wednesday, August 19, 2015

MJ [17] LED clock

Question:
Consider a LED clock. Eg., 06:30 is displayed by an array of LEDs as 110:11110. Note that the clock only needs 10 LEDs since the maximum hour is 12 (1100) and the maximum minute is 60 (111100). Write program to print all times which turns on n LEDs. 

Ref
[1] http://www.mitbbs.com/article_t/JobHunting/33010083.html

No comments:

Post a Comment