Circumference

Task
Write a program which asks the user to input the diameter of a circle and calculates the circumference of that circle.

The formula for calculating the circumference of a circle is: C = π d, where π = 3.14.



Design
Here are the steps for the program. Notice that steps 1 and 2 have been broken down further to give more detail

1.1 Ask the user to enter the diameter in cm
 * 1. Get diameter**

2.1 circumference = 3.14 x diameter 3. Display circumference
 * 2. Calculate circumference**

What are the inputs, processes and outputs for this program?

What variables will be required?

Program and testing
Write the code and test your program.