formula to calculate circumference of a circle code example
Example 1: area and circumference of a circle
#include
#define PI 3.142
int main(){
float r, C, A;
printf("What is the radius: \n");
scanf("%f", &r);
C = 2 * PI * r;
A = PI * r * r;
printf("\nCincumference is and %f Area is %f\n", C, A);
}
Example 2: how to find circumference of a circle
curcomfrance = pi * radius * 2
Example 3: circumference of circle
C = Pi * r * 2 (r stands for radius)
Or you could do this:
C = Pi * d (d stands for diameter)