I uploaded blinking program to the arduino, my LED was blinking!
I connected the microcontroller to my computer via USB and I uploaded the program to the arduino. After a few seconds, I turned the switch on and then my LED lighted!Turn-off
Turn-on
And I connected a green LED to digital pin 13 and GND.
I connected a switch to digital input 2 like this picture.
Power -> 5V pin (Red)Ground-> Gnd pin (Black)