- Home
- Javascript Examples
- Arithmetic Operators
JS - Arithmetic Operators
विवरण :
कोई विवरण नहीं है |
सोर्स कोड :
<!DOCTYPE html> <html> <head> <title> Operator - Arithmetic Operators </title> <body> <script type="text/javascript"> var a=10,b=2; document.write( "Addition of a and b is " + a + b + "<br>" ); document.write( "Subtraction of a and b is " + (a - b) + "<br>" ); document.write( "Multiplication of a and b is " + a * b + "<br>" ); document.write( "Division of a and b is " + a / b + "<br>" ); document.write( "Remainder of a and b is " + a % b + "<br>" ); document.write( "Incrementing of a is " + ++a + "<br>" ); document.write( "Decrementing of a is " + --b ); </script> </body> </head> </html>