Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title>Product of Three Integers</title>
- <script type = "text/javascript">
- <!--
- // Calculate the product of three integers
- var x, y, z, result;
- var xVal, yVal, zVal;
- xVal = window.prompt( "Enter first integer:", "0" );
- yVal = window.prompt( "Enter second integer:", "0" );
- zVal = window.prompt( "Enter third integer:", "0" );
- x = parseInt( xVal );
- y = parseInt( yVal );
- z = parseInt( zVal );
- result = x * y * z;
- document.writeln( "<h1>The product is " +
- result + "<h1>" );
- // -->
- </script>
- </head><body></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement