write a program to input the radius of a circle and find its area and perimeter
Answers
Answered by
28
/*C program to find area and perimeter of circle.*/
#include <stdio.h>
#define PI 3.14f
int main()
{
float rad,area, perm;
printf("Enter radius of circle: ");
scanf("%f",&rad);
area=PI*rad*rad;
perm=2*PI*rad;
printf("Area of circle: %f \nPerimeter of circle: %f\n",area,perm);
return 0;
}
hope u will be satisfied
Similar questions
History,
3 months ago
Social Sciences,
3 months ago
English,
6 months ago
Business Studies,
11 months ago
Geography,
11 months ago