C Language Program to find Area and Perimeter of a Circle.

C - SIMPLE  PROGRAMS


3: C Language Program to find Area and Perimeter of a Circle.

#include<stdio.h>
#include<conio.h>
#include<math.h>
main( )
{
float pi=3.1416,r,area,per;
printf("\nEnter the Value of Radius : ");
scanf("%f",&r);
area=pi*pow(r,2);
per=2*pi*r;
printf("\nArea = %f\n",area);
printf("\nPerimeter = %f",per);
getch( );


}




Post a Comment

0 Comments