Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Tim Howard
- #Pool Program
- calc=input ("Do you want to calculate the area or circumference of a pool? Y or N ")
- while (calc == "y"):
- if calc == "y":
- rad=int(input("Enter the radius of the pool "))
- cora=input("Do you want to know the circumference or area? C or A ")
- if cora == "c":
- res=(2*3.14)*rad
- print("The circumference of a circle with radius", rad,"is", res)
- elif cora == "a":
- res=3.14*(rad*rad)
- print ("The area of a circle with radius", rad, "is",res)
- else:
- ("Invalid Selection. Please try again.")
- input("Press enter to exit")
Add Comment
Please, Sign In to add comment