area of circle is code example

Example 1: area and circumference of a circle

#include <stdio.h>
#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: area of circle

R = (3.14*r*r);

Example 3: area of circle

Area of circle = Pi * r^2 (r stands for radius and ^2 means squared)

Example 4: area of circle

The area of a circle is pi times the radius squared (A = π r²). Learn how to use this formula to find the area of a circle when given the diameter.

Example 5: how to find area of circle

def circle(radius):
	3.14 * radius * radius 
circle(12)