
What are basic operators Swift 5.1
Basic Operators include + – divide(/) and multiply(*).
They also include logical operators like && which compares to Boolean values. Based on their combined result will give you a true or false result.
Other operators used in swift are range operators like:
1..<5
This is a range from 1 to less than 5
for i in 1..<5
{
print(i)
}
There are also assignment operators which means you can update and a value to do this we use the equal sign.
var firstValue = 2
firstValue = 7
// now firstValue has changed to 7 using equals
The remainder operator is very interesting it will divide a value into another and give you the remaining result for example
10 % 4 // gives 2, Because when you divide 10 by 4 you can only do it two times which gives you eight so the remainder of 10-8 = 2

