## FILE: circle.py ## AUTHOR: Eugene Wallingford ## DATE: 08/27/2014 ## COMMENT: Compute the area and circumference of a circle. ## This code is adapted from Code Listing 1.1 in the text. import math r_string = input("Enter the radius of the circle: ") r = int(r_string) circumference = 2 * math.pi * r area = math.pi * (r ** 2) print("circumference = ", circumference) print("radius = ", r)