0

What ia the output of this?

import math print (math.sqrt (int(input())))

14th Oct 2019, 12:36 PM
Carlos Perciliano
Carlos Perciliano - avatar
2 Respostas
+ 6
The output for the above code will depend upon the input you give to this program. If the input provided is 9 then, the math.sqrt method will return the square root of 9 i.e. 3.0 If the input provided is 56, then the math.sqrt method will return 7.4833.... You can just use the Code Playground to know the output. You can ask here in the Q/A section if you don't understand the output.
14th Oct 2019, 12:52 PM
Nova
Nova - avatar
+ 2
It print the square root of an integer which is entered by user.
14th Oct 2019, 12:50 PM
Chirag Kumar
Chirag Kumar - avatar