Area of a circle can simply be evaluated using following formula.

Area = pi * r^{2}where r is radius of circle

## C++

`// C++ program to find area ` `// of circle ` `#include <iostream> ` `const` `double` `pi = 3.14159265358979323846; ` `using` `namespace` `std; ` ` ` `// function to calculate the area of circle ` `float` `findArea(` `float` `r) ` `{ ` ` ` `return` `(pi * r * r); ` `} ` `// driver code ` `int` `main() ` `{ ` ` ` `float` `r, Area; ` ` ` `r = 5; ` ` ` ` ` `// function calling ` ` ` `Area = findArea(r); ` ` ` `// displaying the area ` ` ` `cout << ` `"Area of Circle is :"` `<< Area; ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## C

`// C program to find area ` `// of circle ` `#include <stdio.h> ` `#include <math.h> ` `#define PI 3.142 ` ` ` `double` `findArea(` `int` `r) ` `{ ` ` ` `return` `PI * ` `pow` `(r, 2); ` `} ` ` ` `int` `main() ` `{ ` ` ` `printf` `(` `"Area is %f"` `, findArea(5)); ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// Java program to find area ` `// of circle ` ` ` `class` `Test ` `{ ` ` ` `static` `final` `double` `PI = Math.PI; ` ` ` ` ` `static` `double` `findArea(` `int` `r) ` ` ` `{ ` ` ` `return` `PI * Math.pow(r, ` `2` `); ` ` ` `} ` ` ` ` ` `// Driver method ` ` ` `public` `static` `void` `main(String[] args) ` ` ` `{ ` ` ` `System.out.println(` `"Area is "` `+ findArea(` `5` `)); ` ` ` `} ` `} ` |

*chevron_right*

*filter_none*

## Python3

`# Python3 program to find Area of a circle ` ` ` `def` `findArea(r): ` ` ` `PI ` `=` `3.142` ` ` `return` `PI ` `*` `(r` `*` `r); ` ` ` `# Driver method ` `print` `(` `"Area is %.6f"` `%` `findArea(` `5` `)); ` ` ` `# This code is contributed by Chinmoy Lenka ` |

*chevron_right*

*filter_none*

## C#

`// C# program to find area of circle ` `using` `System; ` ` ` `class` `GFG ` `{ ` ` ` `static` `double` `PI = Math.PI; ` ` ` ` ` `static` `double` `findArea(` `int` `r) ` ` ` `{ ` ` ` `return` `PI * Math.Pow(r, 2); ` ` ` `} ` ` ` ` ` `// Driver method ` ` ` `static` `void` `Main() ` ` ` `{ ` ` ` `Console.Write(` `"Area is "` `+ findArea(5)); ` ` ` `} ` `} ` ` ` `// This code is contributed by Sam007. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to find area ` `// of circle ` ` ` `function` `findArea( ` `$r` `) ` `{ ` ` ` `$PI` `=3.142; ` ` ` `return` `$PI` `* pow(` `$r` `, 2); ` `} ` ` ` `// Driver Code ` `echo` `(` `"Area is "` `); ` `echo` `(findArea(5)); ` `return` `0; ` ` ` `// This code is contributed by vt_m. ` `?> ` |

*chevron_right*

*filter_none*

**Output:**

Area is 78.550000

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Area of the circle that has a square and a circle inscribed in it
- Program to calculate area of an Circle inscribed in a Square
- Given equation of a circle as string, find area
- Find the area of largest circle inscribed in ellipse
- Equation of circle when three points on the circle are given
- Check if a circle lies inside another circle or not
- Angle subtended by the chord to center of the circle when the angle subtended by the another equal chord of a congruent circle is given
- Area of a Circumscribed Circle of a Square
- Area of square Circumscribed by Circle
- Area of circle inscribed within rhombus
- Area of a circle inscribed in a regular hexagon
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Area of circle which is inscribed in equilateral triangle
- Area of decagon inscribed within the circle
- Area of largest Circle inscribe in N-sided Regular polygon
- Area of largest Circle that can be inscribed in a SemiCircle