<!DOCTYPE html>
<html>
<head>
<title>sum of 2 number</title>
</head>
<body>
<script type=”text/JavaScript”>
var strx = prompt (“enter first number”,””);
var stry = prompt (“enter second number”,””);
var x = parseInt(strx);
var y = parseInt(stry);
var sum =x+y;
document.write(alert(sum));
</script>
</body>
</html>
:)
<html>
<head>
<title>sum of 2 number</title>
</head>
<body>
<script type=”text/JavaScript”>
var strx = prompt (“enter first number”,””);
var stry = prompt (“enter second number”,””);
var x = parseInt(strx);
var y = parseInt(stry);
var sum =x+y;
document.write(alert(sum));
</script>
</body>
</html>
:)
No comments:
Post a Comment