Write a complete C program that prompts the user to enter the radius of a circle and displays the circumference. Be sure to name the constant P.

What will be an ideal response?


```
int
main(void)
{
double radius, circum;

printf("Please enter radius of circle> ");
scanf("%lf", &radius);
circum = 2 * PI * radius;
printf("The circumference is %.2f.\n", circum);

return (0);
}
]
```

Computer Science & Information Technology

You might also like to view...

A _________ loop always executes the loop body at least once, irregardless of the loop condition.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

How do you change the order of the layers in the Layers panel?

A. Link the layer to a new document. B. Click Order in the Layers panel menu. C. Click Find / Change in the Page Layers dialog box. D. Drag the layer to a new location.

Computer Science & Information Technology

The print ________ is the range of cells that will be printed.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The buses that connect peripheral (typically input and output) devices to the motherboard are often called expansion buses. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology