In this blog, I am going to tell you about finding an area of a circle in C programming. Software Requirements. Turbo C or C. C Program to Find Area and Circumference of a Circle In this C program, we will calculate circumference and area of circle given radius of the circle. The area of circle is the amount of two-dimensional space taken up by a circle. We can calculate the area of a circle if you know its radius.
- Circumference Of A Circle
- Area Of A Circle Calculator
- Dev C++ Area Of A Circle Calculator
- C++ Area Of Circle
In this example, you will learn about C++ program to find area of the circle with and without using the function.
Formula to find area of the circle:
where,
mathematical value of Π is 3.14159.
Let’s calculate the are of the circle using two methods.
Example: C++ program to find area of the circle.
Example: C++ program to find area of the circle using function.
Circumference Of A Circle
Output
Area Of A Circle Calculator
Explanation
Dev C++ Area Of A Circle Calculator
In the first program, we have simply calculated area of the circle in the main program.
C++ Area Of Circle
However, we have used
areaOfCircle( )
function for calculating area of the circle in the second program.