- + (use for addition between numbers)
- – (Use to subtract two numbers)
- / (Use to divide two numbers)
- *(Use to multiply two numbers)
- ++ (Increment by 1)
- — (Decrement by 1)
Arithmetic Operation Addition
Arithmetic operation Addition is used to add two numbers. Keep this thing in mind that we can not add two strings using this operator but we can add only numbers with the help of this operator. To add the two string actually means concatenating the two strings so the function concat is used to attach two strings. We will deal with the strings concatenation later.
Arithmetic operation adds the number one by one.
Arithmetic Operation Subtraction
This is because strings mainly consist of characters. Set of character collectively known as the string. In easy words if the value is placed between double codes(””) then it becomes string. For example x=”12”.
Here, x is not a number or integer rather it is behaving as string here so you can’t add the x with a number. You will encounter an error.
Arithmetic Operation Multiplication
Division Arithmetic operator