need MULTIPLEXING 7 segment help

That code is very long winded. You need to learn how to use arrays. See:-
http://www.thebox.myzen.co.uk/Tutorial/Arrays.html