Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created circle _area_perimeter.py #12

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Python/circle_area_perimeter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
print("Program to find area and perimeter of a circle")
print("choose your desired option no")
print("1.Find perimeter")
print("2.Find area")
inp=int(input("enter the option number e.g. 1 or 2:"))
a=int(input("enter the radius of the circle:"))
if (inp==1):
perimeter=2*3.14*a
print("perimeter of the circle is:", perimeter)
elif (inp==2):
area=3.14*a**2
print("Area of this circle is:", area)
else:
print("invalid input,please enter a number between 1 or 2")