Write a Python program to calculate volume of Torus


Topic: Write a Python program to calculate volume of Torus

Solution

r = 3
R = 7
pi = 3.14159
Volume = (float)(2 * pi * pi * R * r * r)
print("Volume: ", Volume)



List all Python Programs