Area of sector

Share it Please
this program will print area of sector by entering radius and theta.this program will work on simple formula of calculating area of sector.Formula to find area of sector is given by:
1/2*theta*r*r
Note that this program will print approximately values.I have simply used this formula in this program.Now let us see program:


Program:

#include<stdio.h>
#include<conio.h>
main()
{

        float theta,r,aofs,rad;
        clrscr();
        printf("Enter Radius: ");
       scanf("%f",&r);
        printf("\nEnter angle: ");
        scanf("%f",&theta);
        rad=(120*3.14)/180;
        aofs=0.5*rad*r*r;
        printf("\nArea of given sector is %f(approx)",aofs);
       getch();
}