-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharea.py
More file actions
18 lines (14 loc) · 756 Bytes
/
area.py
File metadata and controls
18 lines (14 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
radius=float(input("Enter the radius of the circle:"))
area_of_circle=3.14*radius**2
print("The area of the circle is",area_of_circle,"square units")
length=float(input("Enter the LENGTH of the Rectangle:"))
breadth=float(input("Enter the BREADTH of the Rectangle:"))
area_of_rectangle=length*breadth
print("Area of the Rectangle is :",area_of_rectangle,"square units")
side=float(input("Enter the side of the Square:"))
area_of_square=side**2
print("The area of the square is :",area_of_square,"square units")
height=float(input("Enter the height of the triangle :"))
base=float(input("Enter the base of the triangle :"))
area_of_triangle=0.5*base*height
print("The area of the Triangle is :",area_of_triangle,"square units")