New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Please. Give me a code in JAVASCRIPT that will run "square root " USING for,while,or do-while LOOP.
Javascript
2 Answers
+ 1
var x=0;
while (x<=10){
document.write(Math.sqrt(x)+'<br>');
x+=2;
}
+ 1
thanks man.