C program to find area of circle of input radius

      No Comments on C program to find area of circle of input radius

In geometry, the area is enclosed by a circle of radius r is π*r*r.Here value of π represents a constant and approximately equal to 3.14159,which is equal to the ratio of the circumference of any circle to its diameter.

#include<stdio.h>
#include<conio.h>
void main()
{
 int r;
 float x;
 clrscr();
 printf("Enter Radius:- ");
 scanf("%d",&r);
 x=3.14*r*r;
 printf("Area of circle = %f",x);
 getch();
}

OUTPUT:-

Leave a Reply

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