I am working on a project where i need to glow 5 led and when these 5 are on then a separate led should glow.Please help me.
You mean you want to turn on six LEDs?
yes
Keep track of the leds that you are turning on. When all 5 are turned on, turn the 6th on.