Addition of 2 no in Javascript Example
Addition of 2 no
<html>
<head>
<title>
welcome
</title>
</head>
<body>
<script>
var a,b,c;
document.write("Enter the value of a and b is:");
a=parseInt(prompt("Enter the value of a is:"));
b=parseInt(prompt("Enter the value of b is:"));
c=a+b;
alert(c);
</script>
</body>
</html>
0 coment�rios:
Post a Comment