diff --git a/circle_area.py b/circle_area.py index 513d6f7..de1330a 100644 --- a/circle_area.py +++ b/circle_area.py @@ -1,6 +1,9 @@ # circle_area.py # -------------- # By MWC Contributors +import math print("This program will calculate the area of a circle.") radius = float(input("What is the circle's radius? ")) +area = math.pi * (radius * radius) +print(area) diff --git a/greetings.py b/greetings.py index 2d878a6..bd544b0 100644 --- a/greetings.py +++ b/greetings.py @@ -2,6 +2,6 @@ # ------------ # By MWC contributors -my_name ="Chris" +my_name = input("What is your name? ") greeting = "Hello, " + my_name print(greeting)