Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (<http://en.wikipedia.org/wiki/Seven-segment_display>)
1 -> 2 34 -> 9
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more