To perform seven segment display

Seven segment display means digital display from 0 to 9.

This is done by using 8 LEDs (connected to same port or different ports).
8th one represents .(dot)