- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures

- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces

# Area of a Circumscribed Circle of a Square in C++

In this problem, we will calculate the area of the circumscribed circle of a square when we are given the side of the square. Before we go further let’s revise the basic definitions to understand the concepts better.

**Square** is a quadrilateral with all sides equal.

**The circumscribing circle** is a circle touches all the vertices of a polygon.

**The area** is the quantitative representation of the extent of any two-dimensional figure.

To calculate the area of the circumscribed circle of a square. We need to find the relation between the parameter of the circle and the square.

Now, as in the figure, all the vertices of the square are touching the circle. We can conclude from seeing the figure that the diagonal of the square is equal to the diameter of the circle.

Using this we can derive the relationship between the diameter of the circle and side of the square.

r = (√ (2a^2))/2

r is the radius of the circle and the side of the square.

Now, using the formula we can find the area of the circle.

Area of circle = π*r^2 = π* ((√ (2a^2))^2 / 2 = π * (2 *a ^ 2)/4 = (π*a^2)/2

Now, using this formula we can find the area of the circle.

## Algorithm

Step 1 : Calculate area of circle using formula {(3.14 * a * a) /2 } Step 2 : Print the area of the circle

## Example

#include <iostream> using namespace std; int main(){ float a = 6; float area = ( (3.14 * a * a )/2) ; cout<<"The area of Circumscribed Circle of a Square of side "<<a<<" is "<<area; return 0; }

## Output

The area of Circumscribed Circle of a Square of side 6 is 56.52

- Related Articles
- The side of a square is 10 cm. Find the area of circumscribed and inscribed circles.
- Find the Area of a Circle Inscribed in a Square in Java
- Program to calculate the area of an Circle inscribed in a Square
- A square of diagonal 8 cm is inscribed in a circle. Find the area of the region lying inside the circle and outside the square.
- Area of a square inscribed in a circle which is inscribed in a hexagon in C Program?
- Swift Program to Calculate Area of Circle Inscribed in Square
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Prove that the surface area of a sphere is equal to the curved surface area of the circumscribed cylinder.
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- Find the area of the circle that can be inscribed in a square of side $6\ cm$.
- Find the area of the square that can be inscribed in a circle of radius $8\ cm$.
- Find the area of the circle in which a square of area \( 64 \mathrm{~cm}^{2} \) is inscribed. [Use \( \pi=3.14 \) ]
- Area of a leaf inside a square?
- If a square is inscribed in a circle, find the ratio of the areas of the circle and the square.