Avatar
treastrain / Tanaka.R 6/4/2023 4:07 PM
@swift-5.9.2 let flag = Bool.random() let num1 = if flag { 1.0 } else { 0.5 } let num2 = flag ? 1.0 : 0.5 let num3 = flag ? 1.0 : if flag { 1.0 } else { 0.5 }