mult.html: multiply two numbers
<script> var num1, num2, prod num1 = prompt("Enter first value") num2 = prompt("Enter second value") prod = num1 * num2 document.write("<P> Product = " + prod) prod = 0 while (num1 > 0) { prod = prod + parseInt(num2) num1 = num1 - 1 } document.write("<P> Product = " + prod) </script>