diff --git a/circle_area.py b/circle_area.py index 513d6f7..8ac6a61 100644 --- a/circle_area.py +++ b/circle_area.py @@ -4,3 +4,5 @@ print("This program will calculate the area of a circle.") radius = float(input("What is the circle's radius? ")) +pi = 3.141592653 +print(pi * radius * radius) \ No newline at end of file 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)