<!DOCTYPE html>
<html>
<body>
<p>A typical arithmetic operation </p>
<p id="sample"></p>
<script>
var a = 100;
var b = 50;
var x = a + b;
document.write(x);
var y = a-b;
document.write(y);
var z = a*b;
document.write(z);
var m= a%b;
document.write(m);
var d=a/b;
document.write(d);
</script>
</body>
</html>
0 Comment(s)