<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>new document</title> </head> <body> <script type="text/javascript"> function sqrt(n){ var x = 1; for(var i = 0; i < 10; i++){ x = (x + n / x) / 2; } return x; }
for(var i = 2; i <= 100; i++){ document.write(sqrt(i) + "<br/>"); } </script> </body> </html>
<html>
<head>
<title>new document</title>
</head>
<body>
<script type="text/javascript">
function sqrt(n){
var x = 1;
for(var i = 0; i < 10; i++){
x = (x + n / x) / 2;
}
return x;
}
for(var i = 2; i <= 100; i++){
document.write(sqrt(i) + "<br/>");
}
</script>
</body>
</html>