Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Data File StructureRSS Feeds

PROGRAM TO FIND AREA & CIRCUMFERENCE OF A CIRCLE

Posted By: Harley Evans     Category: C Programming     Views: 29541

WRITE A PROGRAM TO FIND AREA & CIRCUMFERENCE OF A
CIRCLE.

Code for PROGRAM TO FIND AREA & CIRCUMFERENCE OF A CIRCLE in C Programming

#include <stdio.h>
#include <conio.h>
#define PI 3.14
void main()
{
float circum,r,area;
printf("enter the value of radius :  ");
scanf("%f",&r);
area = PI * r * r;
circum = 2 * PI * r;
printf("area of given circle : %f\n ",area);
printf("circumference of given circle is :%f",circum);
getch();
}
  
Share: 


Didn't find what you were looking for? Find more on PROGRAM TO FIND AREA & CIRCUMFERENCE OF A CIRCLE Or get search suggestion and latest updates.

Harley Evans
Harley Evans author of PROGRAM TO FIND AREA & CIRCUMFERENCE OF A CIRCLE is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!