Computer Science, asked by anweshaaa, 7 months ago

accept the radius of a circle and calculate the area and perimeter of it.​

Answers

Answered by venujakesav
2

Answer:

int main() { int rad;

float PI = 3.14, area, ci; printf("\nEnter radius of circle: ");

scanf("%d", &rad); area = PI * rad * rad;

printf("\nArea of circle : %f ", area); ci = 2 * PI * rad;

printf("\nCircumference : %f ", ci); return (0);

Aug 2, 2014

Answered by sksam689
1

Explanation:

int main()

{

int r;

float area;

float perimeter;

printf("enter the radius of circle);

scanf("%d",&r);

area= 3.14*r*r;

printf("\nArea of circle : %f ", area);

perimeter = 2 * 3.14* r;

printf("\nPerimter : %f ", perimeter);

return (0);

}

Similar questions