PROGRAM TO FIND AREA AND CIRCUMFERENCE OF A CIRCLE

/*PROGRAM TO FIND AREA AND CIRCUMFERENCE OF A CIRCLE*/
#include<stdio.h>
#include<conio.h>
#define pie 3.14
void main()
{
float r,ar,cir;
clrscr();
printf(“Enter the radius of the circle: “);
scanf(“%f”,&r);
ar=pie*r*r;
cir=2*pie*r;
printf(“Area of the circle is: %f\n”,ar);
printf(“Circumference of circle is: %f”,cir);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *