# Area of Circumcircle of a Right Angled Triangle

Given an integer **C** which is the length of the hypotenuse of a right angled triangle of a circumcircle passing through the centre of the circumcircle. The task is to find the area of the circumcircle.

**Examples:**

Input:C = 8

Output:50.26

Input:C = 10

Output:78.53

**Approach:** Since the hypotenuse **C** passes through the center of the circle, the radius of the circle will be **C / 2**.

And we know that the area of a circle is **PI * r ^{2}** where

**PI = 22 / 7**and

**r**is the radius of the circle.

Hence the area of the circumcircle will be

**PI * (C / 2)**i.e.

^{2}**PI * C**.

^{2}/ 4Below is the implementation of the above approach:

## C++

`// C++ program to find the area of Cicumscribed ` `// circle of right angled triangle ` `#include <bits/stdc++.h> ` `#define PI 3.14159265 ` `using` `namespace` `std; ` ` ` `// Function to find area of ` `// circumscribed circle ` `float` `area_circumscribed(` `float` `c) ` `{ ` ` ` `return` `(c * c * (PI / 4)); ` `} ` ` ` `// Driver code ` `int` `main() ` `{ ` ` ` `float` `c = 8; ` ` ` `cout << area_circumscribed(c); ` ` ` `return` `0; ` `} ` ` ` `// This code is contributed by Shivi_Aggarwal ` |

*chevron_right*

*filter_none*

## C

`// C program to find the area of Cicumscribed ` `// circle of right angled triangle ` `#include <stdio.h> ` `#define PI 3.14159265 ` ` ` `// Function to find area of ` `// circumscribed circle ` `float` `area_circumscribed(` `float` `c) ` `{ ` ` ` `return` `(c * c * (PI / 4)); ` `} ` ` ` `// Driver code ` `int` `main() ` `{ ` ` ` `float` `c = 8; ` ` ` `printf` `(` `"%f"` `, ` ` ` `area_circumscribed(c)); ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// Java code to find the area of circumscribed ` `// circle of right angled triangle ` `import` `java.lang.*; ` ` ` `class` `GFG { ` ` ` ` ` `static` `double` `PI = ` `3.14159265` `; ` ` ` ` ` `// Function to find the area of ` ` ` `// circumscribed circle ` ` ` `public` `static` `double` `area_cicumscribed(` `double` `c) ` ` ` `{ ` ` ` `return` `(c * c * (PI / ` `4` `)); ` ` ` `} ` ` ` ` ` `// Driver code ` ` ` `public` `static` `void` `main(String[] args) ` ` ` `{ ` ` ` `double` `c = ` `8.0` `; ` ` ` `System.out.println(area_cicumscribed(c)); ` ` ` `} ` `} ` |

*chevron_right*

*filter_none*

## Python3

`# Python3 code to find the area of circumscribed ` `# circle of right angled triangle ` `PI ` `=` `3.14159265` ` ` `# Function to find the area of ` `# circumscribed circle ` `def` `area_cicumscribed(c): ` ` ` `return` `(c ` `*` `c ` `*` `(PI ` `/` `4` `)) ` ` ` `# Driver code ` `c ` `=` `8.0` `print` `(area_cicumscribed(c)) ` |

*chevron_right*

*filter_none*

## C#

`// C# code to find the area of ` `// circumscribed circle ` `// of right angled triangle ` `using` `System; ` ` ` `class` `GFG { ` ` ` `static` `double` `PI = 3.14159265; ` ` ` ` ` `// Function to find the area of ` ` ` `// circumscribed circle ` ` ` `public` `static` `double` `area_cicumscribed(` `double` `c) ` ` ` `{ ` ` ` `return` `(c * c * (PI / 4)); ` ` ` `} ` ` ` ` ` `// Driver code ` ` ` `public` `static` `void` `Main() ` ` ` `{ ` ` ` `double` `c = 8.0; ` ` ` `Console.Write(area_cicumscribed(c)); ` ` ` `} ` `} ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP program to find the ` `// area of Cicumscribed ` `// circle of right angled triangle ` `$PI` `= 3.14159265; ` ` ` `// Function to find area of ` `// circumscribed circle ` `function` `area_circumscribed(` `$c` `) ` `{ ` ` ` `global` `$PI` `; ` ` ` `return` `(` `$c` `* ` `$c` `* (` `$PI` `/ 4)); ` `} ` ` ` `// Driver code ` `$c` `= 8; ` `echo` `(area_circumscribed(` `$c` `)); ` `?> ` |

*chevron_right*

*filter_none*

**Output:**

50.265484

## Recommended Posts:

- Program to calculate area of Circumcircle of an Equilateral Triangle
- Area of Incircle of a Right Angled Triangle
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Find the height of a right-angled triangle whose area is X times its base
- Area of the circumcircle of any triangles with sides given
- Find the dimensions of Right angled triangle
- Check whether right angled triangle is valid or not for large sides
- Area of Reuleaux Triangle
- Check if right triangle possible from given area and hypotenuse
- Area of a triangle inside a parallelogram
- Program to find area of a triangle
- Find the altitude and area of an isosceles triangle
- Area of circle which is inscribed in equilateral triangle
- Area of the Largest Triangle inscribed in a Hexagon

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.