IDNStudy.com, kung saan ang iyong mga tanong ay natutugunan ng mabilis na sagot. Sumali sa aming platform ng tanong at sagot upang makatanggap ng mabilis at eksaktong tugon mula sa mga propesyonal sa iba't ibang larangan.
Answer:#include <stdio.h>
int main() {
int radius;
float area, perimeter;
radius = 6;
perimeter = 2*3.14*radius;
printf("Perimeter of the Circle = %f inches\n", perimeter);
area = 3.14*radius*radius;
printf("Area of the Circle = %f square inches\n", area);
return(0);
}
struct circle {
float x; // center x
float y; // center y
float radius;
};
int
point_inside (struct circle *c, float x, float y)
{
float x2 = (x - c->x) * (x - c->x);
float y2 = (y - c->y) * (y - c->y);
float r2 = c->radius * c->radius;
// if squared distance is less than squared radius
// point is inside the circle
return (x2 + y2 < r2);
}
Explanation: still finding answers for this huhuhuhu