Area of Circular Sector || Geometric Program || Python

In this we are going to see a basic program to find area of sector in Python Programming Language.


def SectorArea(radius, angle):
	pi = 22 / 7
	
	# Constraint or Limit
	if angle >= 360:
		print("Angle not possible")
		return
	
	# Calculating area of the sector
	else:
		sectorArea = (pi * radius ** 2) * (angle / 360)
		print("Area of given sector = ",sectorArea,"sq units")
		return

# Driver code
radius = 9
angle = 60
SectorArea(radius, angle)

#Code by Shrinivas


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post