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.
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