how to power 4 7-segment displays

Do not use small square 9V batteries, they can give very little current.
Long wires on inputs do not affect battery durian, although they can pick up more interference.