Breaking News

Find the Area Of circle in c

#include
#include
#define pi 3.14
float area=0;
void cir_area(int);
void main()
{
int r;
clrscr();
printf("enter the r");
scanf("%d",&r);
cir_area(r);
printf("%f",area);
getch();
}
void cir_area(int r)
{
//float res;
area=pi*r*r;
//printf("%f",res);
}

No comments