You are here

Operators ,, vb.net tutorial

Operators are the basic way of manipulating data. The following operators are the most common operators that you will use in programming.

The "+" operator is used if you want to add elements together.

The "-" operator is used if you want to subtract one element from the other. The "-" operator is also used as a negative sign for negative values.

The "*" operator is used for multiplying elements.

The "/" operator is used if you want to divide an element with another element.

The "=" sign denotes that the values on the left side of the "=" sign are equal to the values on the right side.

A basic equation in a program may look like the code below.

3 + x = 4<

source : edumax.com
MsgBox (x)

If this program is run, a message box will appear on the screen indicating the correct value of x, which is 1.

Forums: