Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Assignment Operators Swift

// assign 10 to a
var a = 10

// assign 5 to b
var b = 5 

// assign the sum of a and b to a
a += b      // a = a + b

print(a)
 
PREVIOUS NEXT
Tagged: #Assignment #Operators #Swift
ADD COMMENT
Topic
Name
1+1 =