Python Program to find Area of Circle || Semicircle || Geometric Program || Python

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


# Function for calculating the area
def area(r):
	
	# Formula for finding the area
	return (0.5)*(3.14)*(r *r)

# driver code
if __name__=='__main__':
	# Get the radius
	r = 10

	# Find the area
	print ("The Area of Semicircle: ",area(r),"sq units")

#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