C Program to Calculate Area and Circumference of circle

	#include <stdio.h>
	 
	int main() 
	{
	 
	   int rad;
	   float PI = 3.14, area, ci;
	 
	   printf("\nEnter radius of circle: ");
	   scanf("%d", &rad);
	 
	   area = PI * rad * rad;
	   printf("\nArea of circle : %f ", area);
	 
	   ci = 2 * PI * rad;
	   printf("\nCircumference : %f ", ci);
	 
	   return 0;
	}

Output - C Program to Calculate Area and Circumference of circle

	Enter radius of circle: 2

	Area of circle : 12.560000 
	Circumference : 12.560000 
Compile and Run Online