calculate the area of a circle

value is what it is and name is what it refers to something else.
Variables are useful in programing becouse once you give that value a name you dont have to write out the whole thing, you can just write the name and it will represnt the value.
This commit is contained in:
tsmith37
2025-09-06 22:15:54 -04:00
parent a6eb8baf98
commit 36ccc54dca
3 changed files with 10 additions and 1 deletions

View File

@@ -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.141592
print(radius * radius * pi)