Computer Science, asked by gaggi6268, 10 months ago

To print area and circumference of a circle on a line leaving space in between

Answers

Answered by EliteDaMyth
0

Answer:

what language? if it is C then:

#include<stdio.h>  

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