<html>
<head>
<title>Arithmatic</title>
</head>
<body>
<script language="javascript">
var num1=12;
var num2=6;
var add=num1+num2;
var sub=num1-num2;
var mult=num1*num2;
var div=num1/num2;
document.write("Addition of two number = " + add + "<br>");
document.write("Subtraction of two number = " + sub + "<br>");
document.write("Multiplication of two number = " + mult + "<br>");
document.write("Division of two number = " + div + "<br>");
</script>
</body>
</html>
OUTPUT
Addition of two number = 18
Subtraction of two number = 6
Multiplication of two number = 72
Division of two number = 2
No comments:
Post a Comment