JavaScript program to multiply given two numbers

Views: 15   

Following program shows you how to multiply given two numbers.
In this program we get inputs from user and multiplies those two inputs

var input1  = parseInt(prompt("Enetr first number:"));
var input2  = parseInt(prompt("Enetr second number:"));
var result = input1 * input2
console.log("Multiplication of given two numbers is: " + result);

Output:

Enetr first number:
10
Enetr second number:
20
Multiplication of given two numbers is: 200
On By