What output will be produced by the below code ?

let number = 9.0
print("\(number) squared is \(number * number), and its square root is \(sqrt(number))")

 

"9 squared is 9 * 9, and its square root is sqrt(9)"
"9 squared is 81 , and its square root is 3"
"9.0 squared is 81.0 ,and its square root is 3.0"
This code will not compile
Verified Answer
Correct Option - c

To get all Infosys Certified iOS Swift App Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram