Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Arithmetic Operators in Swift

var a = 7
var b = 2

// addition
print (a + b)  

// subtraction
print (a - b) 

// multiplication
print (a * b)
Source by docs.swift.org #
 
PREVIOUS NEXT
Tagged: #Arithmetic #Operators #Swift
ADD COMMENT
Topic
Name
6+9 =