Showing posts with label Subtraction. Show all posts
Showing posts with label Subtraction. Show all posts

Wednesday, October 27, 2010

Subtraction

Code eg: Subtraction from two integer variables

' Declare variables
Dim TotalPointsPossible As Integer = 200
Dim TotalPlayerMisses As Integer = 50
' Create the expression
Dim TotalScore As Integer = TotalPointsPossible - TotalPlayerMisses

                    The expression in the example will evaluate to 150.

Arithmetic Operators


The following are arithmetic operators. They may be used in arithmetic expressions (maths problems)
  • + Addition Operator
  • - Subtraction Operator
  • / Division Operator
  • * Multiplication Operator