Program:
Output:
<html> <head> <script type="text/JavaScript"> var a = Number(prompt("Enter any Number:")); var b = Number(prompt("Enter any Number:")); document.writeln("A+B:"+(a+b)+"<br/><br/>"); document.writeln("A-B:"+(a-b)+"<br/><br/>"); document.writeln("A/B:"+(a/b)+"<br/><br/>"); document.writeln("A*B:"+(a*b)+"<br/><br/>"); </script> </head> </html>
Output: