Knight rider PWM

hello, welcome to the Arduino forum. this guide explains how to get the best out of this forum. please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get
void loop()
{
for(int x=0;x<256;x++)
{
analogwrite(led[0],x);Led A ON
delay (wait)
}
}