C Program to find area of Sector
Program
#include<stdio.h>
#define PI 3.141
void main()
{
int angle, radius;
float area;
printf("Enter the angle between the radii:\t");
scanf("%d", &angle);
printf("Enter the radius:\t");
scanf("%d", &radius);
area = (PI * (radius * radius) * angle) / 360;
printf("The area of the sector is:\t%f\n", area);
}
Output
Enter the angle between the radii: 42
Enter the radius: 5
The area of the sector is: 9.161250