Common Mathematical Operators Used in Programming

In computer programming, four basic ways are used to manipulate numbers: adding, subtracting, multiplying, and dividing. To perform a mathematical operation with two numbers (or two numbers represented by variables), use these symbols in your computer program:



































Mathematical OperationSymbol to Use
Addition+
Subtraction-
Division/ (forward slash)
Integer division\ (backward slash)
Modulomod
Multiplication*
Exponentiation^








dummies

Source:http://www.dummies.com/how-to/content/common-mathematical-operators-used-in-programming0.html

No comments:

Post a Comment