Python Program to find Square Root of a^2 + b^2 + c^2.

# import math module
import math

a=10
b=20
c=30
d=math.sqrt(a*a + b*b + c*c)
print("Result is",d)


Output 
>>>
Result is 37.416573867739416 
>>> 


No comments

Post your comments

Powered by Blogger.