1. Arithmetic Operators
  2. Operator Overloading
  3. Compound Assignment Operators
  4. Comparison Operators
  5. Conditions
  6. Combining Conditions (also called logical operators)
  7. The Ternary Operator
  8. Switch Statements
  9. Range Operators

1. Arithmetic Operators

Swift supports the four standard arithmetic operators for all number types:

note: swift cannot add two different data types.

a simple example

let num1 = 3
let num2 = 12

let sum = num1 + num2
print(sum)