平方根を求めます

Math.sqrt(1)1
Math.sqrt(2)1.4142135623730951
Math.sqrt(3)1.7320508075688772
Math.sqrt(4)2
Math.sqrt(5)2.23606797749979
Math.sqrt(6)2.449489742783178
Math.sqrt(7)2.6457513110645907
Math.sqrt(8)2.8284271247461903
Math.sqrt(9)3


スクリプト

<HTML>
<HEAD>
<TITLE>Sample</TITLE>
</HEAD>
<BODY bgColor="white">
<CENTER>
<H1>平方根を求めます</H1>
</CENTER>
<TABLE BORDER="1">
<SCRIPT Language="JavaScript">
<!--
for (i=1; i<10; i++) document.write("<TR><TD>Math.sqrt(",i,")</TD><TD>",Math.sqrt(i),"</TD></TR>");
// -->
</SCRIPT>
</TABLE>
</BODY></HTML>