how to upload sketch on arduino IDE
Steps to Upload code in Arduino :
1)Download Arduino IDE and open the application
2) Write a sketch, or use an Example
3) Compile the sketch and check for errors.
4) Connect the board to your computer with a USB cable.
5)Select board - click on Tools in the menu bar and find the Board row.
6) Select Port -click on Tools in the menu bar and find the Port row and click on it to select (Port naming varies by system).
7) Click the Upload button to program the board.