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.

No comments:

Post a Comment