Showing posts with label Addition. Show all posts
Showing posts with label Addition. Show all posts

Wednesday, October 27, 2010

Addition



Code eg: Addition of two integer variables.

' Declare variables
Dim RoundOneScore As Integer = 5000
Dim RoundTwoScore As Integer = 4678
' Create the expression
Dim TotalScore As Integer = RoundOneScore + RoundTwoScore

                    The expression in the example will evaluate to 9678

Arithmetic Operators


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