OPERATORS

Arithmetic Operators

Arithmetic operators perform basic mathematical operations. Kotlin supports the following arithmetic operators:

  1. Addition (+):
  2. Subtraction (``):
  3. Multiplication (``):
  4. Division (/):
  5. Modulus (%):

Relational Operators

Relational operators are used to compare two values. The result of a relational operation is a Boolean value (true or false). Kotlin supports the following relational operators:

  1. Equal to (==):
  2. Not equal to (!=):
  3. Greater than (>):
  4. Less than (<):
  5. Greater than or equal to (>=):
  6. Less than or equal to (<=):

Increment and Decrement Operators

Increment and decrement operators are used to increase or decrease the value of a variable by one.

  1. Increment Operator (++):