7 segment number without programming

You will need a series resistor for each lit segment. If you try to do it with no resistors, or only one resistor, you will shorten the life of the display.

The value of these series resistors depends on the display, the supply voltage and the level of brightness you want.