My arduino digital pin 13 when programmed to be high does not receive power, and so the led doesnt glow, however, when i program 12 to be high and take a wire from pin 12 to 13, the onboard led glows.
I am now sure that my led is not dead, but i was wondering why is it not getting power from pin 13 when it is programmed to be high.
and take a wire from pin 12 to 13, the onboard led glows.
I don't know what the problem is, but you should NEVER short two outputs together!!! If one output is high and the other is low, the outputs will "fight" each other and excessive current will flow... Bad things can happen and you might even fry the chip.
It's possible that you've blown the pin-13 output, but at this point I'm not sure and there may be a different problem.
If the "Blink LED" example doesn't work on pin-13, but it does work with a (different) LED (and resistor) connected to pin-12, and with the sketch modified to blink pin 12, then I'm pretty sure your Arduino is damaged or defective.