Your task is to write a program that reads in the radius of a circle and prints the circle’s diameter, circumference and area. Use the constant value of 3.14159 for pi.
Input Format:
The input consists of a floating point number, one number per line. The input is terminated by the number 0. Minimum input is 1.00 and maximum input is 50100.00. All inputs are valid, none are negative. There are at most 260 inputs per test case, and at least 50 inputs per test case.
Output Format:
For every line of input, output the following in a line:
“Circle #” followed by the number representing the input’s order in the test case, followed by a colon, a space, the diameter, a space, the circumference, a space, and the area. All outputs must be rounded to two decimal places only.
d = 2 * r;
c = 2 * PI * r;
a = PI * r2;