Question: Write a program that inputs the diameter of a circle from a user. The program will output the area of a circle if the diameter

Write a program that inputs the diameter of a circle from a user. The program will output the
area of a circle if the diameter is less than 10 and the circumference of the circle if the diameter
is greater than, or equal to 10. Use the web to look up these formulas if you do not know them.
You must use the math module function for Pi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!