Computer Science, asked by sakethpenumarthy, 6 months ago

Write a C-Program to accept the radius of the circle and find the area​

Answers

Answered by raotd
1

Answer:

  1. int main() { int rad;
  2. float PI = 3.14, area, ci; printf("\nEnter radius of circle: ");
  3. scanf("%d", &rad); area = PI * rad * rad;
  4. printf("\nArea of circle : %f ", area); ci = 2 * PI * rad;
  5. printf("\nCircumference : %f ", ci); return (0);

Explanation:

Answered by Dileepg45
1

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);

Similar questions