Write the code using do while loop without effecting the output:
var prod,b;
prod=1;
for(b=1;b<=10;b+=3)
{
document.write(b);
prod=prod+b*b;
}
document.write("the final product is" & prod);
b=1;
do
b+=3;
}while(b<=10);
document.write("the final prod is" & prod);