JavaScript Program to Add Two Integer Numbers by Proving Input from User

Write a JavaScript program to input two numbers from user and display result like addition, subtraction, multiplication and division.



Source Code
<html>
<head>
    <title>Arithmetic Operations</title>
</head>
<body>
<script>
    var no1 = parseInt(prompt("Enter first number"));
    var no2 = parseInt(prompt("Enter second number"));
    var result;
    result = no1 + no2;
    document.write("Given no1 = " + no1 + " and no2 = " + no2);
    document.write("<br>Addtion = " + result);
    result = no1 - no2;
    document.write("<br>Subtraction = " + result);
    result = no1 * no2;
    document.write("<br>Multiplication = " + result);
    result = no1 / no2;
    document.write("<br>Division = " + result);
</script>
</body>
</html>
Output