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