Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

area and circumference of a circle

#include <stdio.h>
#define PI 3.142
int main(){
    float r, C, A;
    printf("What is the radius: 
");
    scanf("%f", &r);
    C = 2 * PI * r;
    A = PI * r * r;
    printf("
Cincumference is and %f Area is %f
", C, A);
}
 
PREVIOUS NEXT
Tagged: #area #circumference #circle
ADD COMMENT
Topic
Name
2+3 =