Here you can find a number of examples on Java Script.Please find the various kinds of examples listed on the right side of this site. If you don't find anything on Java Script then please write to us or leave a commnet. We are pleased to help and find the solution of your problem.

Javascript: Arithmatic Operators


<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>");



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