Home » VB.NET Basics » 04 - Basics of Programming
4

Operators

Operators are the basic way of manipulating data

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<
 MsgBox (x) 

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