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
See Also: JAVA Program To Find Area And Circumference Of Circle
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
0 Comments: