C program to find the area of a circle, given the radius

C program to find the area of a circle, given the radius. This is the simple C program to find the area of the circle, Here we define the PI value as macros, because it is constant through out the program. Read more about C Programming Language .

/***********************************************************
* You can use all the programs on www.c-program-example.com
* for personal and learning purposes. For permissions to use the
* programs for commercial purposes,
* contact [email protected]
* To find more C programs, do visit www.c-program-example.com
* and browse!
*
* Happy Coding
***********************************************************/


#include <stdio.h>
#include <conio.h>
#include <math.h>
#define PI 3.142

void main()
{
float radius, area;
clrscr();

printf("Enter the radius of a circlen");
scanf ("%f", &radius);

area = PI * pow (radius,2);

printf ("Area of a circle = %5.2fn", area);
}
Read more Similar C Programs
Searching in C

Number Theory 
 
C Strings
 

You can easily select the code by double clicking on the code area above.

To get regular updates on new C programs, you can Follow @c_program

You can discuss these programs on our Facebook Page. Start a discussion right now,

our page!

Share this program with your Facebook friends now! by liking it

(you can send this program to your friend using this button)

Like to get updates right inside your feed reader? Grab our feed!

(c) www.c-program-example.com

Leave a Reply