My Computer Science Lab.

I forgot my flash drive, so I needed a place to jot this down so i can copy it and print it later. so ignore this

<html><head><script>
function multiply(x, y, z)
{
return x*y*z;
}
function calc()
{
var answer = 0;
for( i = 1; i <= 5; i++)
answer= answer + i*(i+1)*(i+2)
alert(“The value is ” + answer + “.”);
}
</script></head>
<body>
<form>
This page will calculate 1*2*3 + 2*3*4 + 3*4*5 + 4*5*6 + 5*6*7 <br>
<input type=button value=”Show me” onclick=”calc()”>
</form>
</body></html>