Write a C program to compute the perimeter and area of a circle with a given radius
Expected Output:
Perimeter of the Circle = 56.520000 inches
Area of the Circle = 254.339996 square inches
#include <stdio.h> int main() { int radius; float area, perimeter; radius = 9; perimeter = 2*3.14*radius; printf("Perimeter of the Circle = %f inches\n", perimeter); area = 3.14*radius*radius; printf("Area of the Circle = %f square inches\n", area); return(0); }
Result
