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

New to MATLAB?

Problem 324. 7 segment LED display

Created by Alan Chalker

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

Problem Group

Solution Statistics

100 correct solutions 61 incorrect solutions
Last solution submitted on Aug 25, 2015

Problem Comments