Basic program for creating tables to dispaly the cube the numberusing html??
<html>
<head>
<title>
table
</title>
</head>
<body>
<table border="1">
<tr>
<th>NUMBER</th>
<th>CUBE</th>
</tr>
<script type="text/javascript">
var n=parseInt(prompt("enter the no. of rows"));
for(var i=0;i<n;i++)
{
document.write("<tr><td>"+i+"</td><td>"+i*i*i+"</td></tr>");
}
</script>
</table>
</body>
</html>
Enjoy your day
1 comment:
nice site!!!
Post a Comment