Visual Basic 2010 (Console) Guide
Operators

Arithmetic Operators

+         addition
-         subtraction
*         multiplication
/         division
\         integer division
Mod    modulus (remainder)

The last two operators may be new to you. When you use the integer division operator, the two numbers are divided and the result (minus any remainder) is returned - always a whole number. The modulus operator divides two numbers together and returns the remainder.

Operator Priority

When performing calculations, the computer will follow the BODMAS rules of mathematics regarding the priority of operators.

BRACKETS
* / \ Mod
+ -

Operators with equal priority are calculated from left to right. Therefore,

3 + 5 * 7 = 38
(3 + 5) * 7 = 56