Burn code on arduino nano

the usb socket on my arduino nano broke and the arduino still working,
but without the usb socket i can't write code to the arduino,
there is a way that i can burn the code using the pins on the arduino ?

and if this is help i have also arduino mega and uno.

UP

If you had a USBtinyISP (or similar) then you could use that.

As you have a "Uno", you could use the "Arduino as ISP" example sketch and rig the Nano, as the target device, to the Uno. There aren't a lot of details of that specific (Nano-to-Uno) configuration, but there are examples using Uno/Duem. and "stand-alones", so you ought to be able to extrapolate based on that.
http://arduino.cc/en/Tutorial/ArduinoISP

Adding another useful link -- Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board

BTW - Do NOT screw this up! :slight_smile: