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 (see Wikipedia: http://en.wikipedia.org/wiki/Seven-segment_display)
Examples:
1 -> 2
34 -> 9

Solution Stats

51.52% Correct | 48.48% Incorrect
Last Solution submitted on Dec 18, 2025

Problem Comments

Solution Comments

Show comments


Problem Recent Solvers284

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!