Breaking News

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 after division (Val1 mod Val2)
String Concatenation & Concatenates two strings (val1 & val2)
Exponentiation ^ Raises the first operands to the power of second operand (val1^val2)

Check Also

Logical Operators

These are also known as Boolean operators.Boolean operators are used in the conditions where condition can be …