This might be a very rudimentary question, but I'm playing around with if statements and the following example won't work with error "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions". Does anybody know what I'm doing wrong?
let a = 4
let b = 3
let c = 10
let d = 2
if ((sqrt((a - b)^2 + (c - d)^2)) > 100) {
print("Yes")
}
Aucun commentaire:
Enregistrer un commentaire