How to calculate the perimeter and area of a circle with an given radius.

 #include <stdio.h>

#include <stdlib.h>


int main(){

   float radius = 1.67,per,are;


   per = 2*3.1416*radius;

   are = 3.1416 * radius * radius;



   printf("Perimeter of a Circle : %.2f\n\nArea of a Circle : %.2f\n\n",per,are);



    return 0;

}


Comments