Created
May 11, 2018 17:07
-
-
Save edenizk/2063fae71bcfc4f638403878aabb6102 to your computer and use it in GitHub Desktop.
toruscal calculator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
print('TOrus calculator\n') | |
R=float(input('major radius R = ')) | |
r=float(input('minor radius r = ')) | |
area = (2*math.pi*R)*(2*math.pi*r) | |
vol = (math.pi*r**2)*(2*math.pi*R) | |
print("area = ",area) | |
print("volume = ",vol) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment