Swift Tutorial - Tutorialspoint

(backadmin) #1

}


}


}


let no = Math.abs(- 35 )
let num = absno.abs(- 5 )

println(no)
println(num)

When we run the above program using playground, we get the following result.


35


5

Free download pdf