human
Write me a code to program to find the Area and Perimeter of a Semicircle and the other steps required given the following:
Program to find the Area and Perimeter of a Semicircle | Function for calculating the area.
Formula for finding the area.
Function for calculating the perimeter.
Formula for finding the perimeter.
driver code.
Get the radius.
Find the area.
Find the perimeter"
Solution in Python:
assistant
#Here is code to program to find the Area and Perimeter of a Semicircle and the other steps required.
 def area ( r ) :
	return ( 0.5 ) * ( 3.14 ) * ( r * r )
def perimeter ( r ) :
	return ( 3.14 ) * ( r )
if __name__ == ' _ _ main _ _ ' :
	r = 10
	print ( " The ▁ Area ▁ of ▁ Semicircle : ▁ " , area ( r ) )
	print ( " The ▁ Perimeter ▁ of ▁ Semicircle : ▁ " , perimeter ( r ) )