Write a programme to find the perimeter of a circle
Answers
Answered by
0
Answer:
Explanation:
/*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;
}
Answered by
0
Answer:
Program
#include<stdio.h>
int main() {
float radius, area;
printf("\nEnter the radius of Circle : ");
scanf("%d", &radius);
area = 3.14 * radius * radius;
printf("\nArea of Circle : %f", area);
return (0
Similar questions