0

Why 9**(1/2) gave answer as 3.0 and not 3?

9th Mar 2018, 5:00 PM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar
2 Answers
+ 3
Because you use power float 0.5 (which then leads to square root). If you use whole number as power , then resulting value will be type int.
9th Mar 2018, 5:09 PM
Sylar
0
thank you for answering
9th Mar 2018, 5:11 PM
Mujahid Faraz Siddiqui
Mujahid Faraz Siddiqui - avatar