Arithmetic Operators

Arithmetic operators are used for mathematical expressions. The given table shows various arithmetic operators and their description: Operators Symbol Description of Symbol Subtraction – Subtracts two operands (val1-val2) Addition + Adds two operands (val1-val2) Multiplication * Multiply two operands (val1*val2) Division / Divides 2 operands (val1/val2) Negation ~ Negates the operand Modulo Mod Gives the remainder …

Arithmetic Operators Read More »

Logical Operators

These are also known as Boolean operators.Boolean operators are used in the conditions where condition can be true or false case. Basically logical operators are used to form logical expressions that represent true or false conditions. For Example: The ‘Or’ operator returns the result when only one operands is true. The given table summarizes various logical operators and their description: Operators …

Logical Operators Read More »

Relational Operators

There are six relational/Comparison operators used in testing expressions. They are >= (greater than or equal to), <= (Less than or equal to), < (less than), > (greater than), <> (Not equal to). Comparison operators are used to compare two expressions.They are also known as relationaloperators. The table below contains a list of operators used in Visual Basic: Operators Function < First expression is less than second. <= First …

Relational Operators Read More »

Scroll to Top