8 LEDs were used in this application. If desired, 5 more LEDs can be used.
8 of the digital output pins (13,12,11,10,9,8,7,6) are set as output. It is set to pinModeoutput as in the previous examples.
With the help of the for loop, code clutter is avoided. We can change the effects of the leds by changing the number of these cycles.