
programminghq.com
Beginning ProgrammingGet Started the Right Way. The place for beginners to learn programming. SwiftBasics02.2 - Operators. 1 Comment so far. In Swift, there are four standard arithmetic operators: addition , subtraction (-), multiplication (*) and division (/). Var result = 1 2 - 3 * 4 / -9. For String variables, the ' ' operator concatenates Strings as well. e.g. Var str1 = "Hello". Var str2 = " World". Var result = str1 str2. The output will be: Hello World. Range operators are useful in loops. e.g. For x in 1. 4{. We hav...
http://www.programminghq.com/
SOCIAL ENGAGEMENT