How to use multiple LEDs

The answer you gave is correct. Thank you very much. I haven't been able to solve it for a week... Thanks to your reply, it's over. Looking at your coding, it seems that I am not good enough. I'll have to work a little harder. Thank you.