Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  Enter 1st Number : <input type="text" id="a">
  <br><br>
  Enter 2nd Number : <input type="text" id="b" onkeyup="add()">
  <br><br>
  Result : <input type="text" id="c">
</head>
<body>
</body>
</html>
 
function add() {
    var x = parseInt(document.getElementById("a").value);
    var y = parseInt(document.getElementById("b").value);
    document.getElementById("c").value = x * y;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
RahulShawpro
0viewers