03/03/2023

C Program to Find Area And Circumference of Circle

Write a C program to find the area and circumference of a circle. The Circumference of the circle is the distance around the circle. The area of the Circle is π *r*r and the Circumstances of the Circle are 2*π*r. Calculate The Circumference of the Circle By Given Formula.

C Program to Find Area And Circumference of Circle

Circumference of a Circle = 2 * π * r.

Here PI (π) is a Greek Letter and r is a Radius (1/2 Of Diameter ). PI (π) = 3.141592653589793 Approx. It Is A Constant Value for more about Circumference Click Here

Area of a Circle  = π * r * r

See Also: C++ Program To Find Area And Circumference Of Circle

C Program to Find Area And Circumference of Circle


#include <stdio.h>

int main()
{
	/*write a c program to find area and circumference of circle*/
	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 of Circle : %f ", ci);

	return (0);
}

See Also: JAVA Program To Find Area And Circumference Of Circle

The Output of Area And Circumference of Circle


The Output of Area And Circumference of Circle

Similar to the Area and Circumference of the Circle


Previous Post
Next Post

post written by:

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.
Follow Me

0 Comments: