Computer Science, asked by opsogun, 2 months ago

Write a function that:
(1) Asks the user to input a diameter of circle in inches.
(ii) Sets a variable called radius to one half of thumber.
(iii) Calculate the area of circle.
Print the area of circle with appropriate unit.
(v) Return this same amount as the output of the function.
Note: You have a make a single program incorporating the above
points.​

Answers

Answered by manishk73368
0

Answer:

1 Answer

def area_circle ():

import math.

diameter=float (raw_input (“Enter the diameter in Inches))

radius = diameter 12.

area_circle_inches = (math.pi) * (radius * * 2)

print “The area of circle, area_circle_ inches.

return (area_circle_inches

Similar questions