Swift - Data Types
Given this Swift code, what is the correct way to store the result of dividing two Ints as a Float with decimal precision?
let a: Int = 7 let b: Int = 2 let result = ???
Given this Swift code, what is the correct way to store the result of dividing two Ints as a Float with decimal precision?
let a: Int = 7 let b: Int = 2 let result = ???
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions