6:Write a C program to compute the perimeter and area of a circle with a radius of 6 inches.

/*
Write a C program to compute the perimeter and area of a circle with a radius of 6 inches.
Expected Output:
Perimeter of the Circle = 37.680000 inches
Area of the Circle = 113.040001 square inches
*/

#include<stdio.h>
#define pi 3.1415
main(void)
{
int radius=6;
float perimeter_of_the_circle=2*pi*radius;
float Area_of_the_Circle=pi*(radius*radius);
printf("Perimeter of the Circle = %f inches\n",perimeter_of_the_circle);
printf("Area of the Circle = %f square inches",Area_of_the_Circle);
}



Comments