Problem 324. 7 segment LED display

Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (<>)


1 -> 2
34 -> 9

Solution Stats

64.48% Correct | 35.52% Incorrect
Last solution submitted on Oct 24, 2016

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more