- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

Concentric circle is the circle inside the circle which means they share common center with different radius lengths i.e. r1 and r2 where, r2>r1. Region between two concentric circles is known as annulus.

Given below is the figure of Concentric Circle

Given with two concentric circles of different radius lengths r1 and r2 where r2>r1. The task is to find the area between both the circles which is highlighted by the blue colour.

To calculate area between two circles we can subtract the area of larger circle from smaller circle

Lets say, bigger circle have radius r2 and smaller circle have radius of length r1 than

Input-: r1=3 r2=4 Output-: area between two given concentric circle is :21.98

Start Step 1 -> define macro as #define pi 3.14 Step 2 -> Declare function to find area between the two given concentric circles double calculateArea(int x, int y) set double outer = pi * x * x Set double inner = pi * y * y return outer-inner step 3 -> In main() Declare variable as int x = 4 and int y = 3 Print calculateArea(x,y) Stop

#include <bits/stdc++.h> #define pi 3.14 using namespace std; // Function to find area between the two given concentric circles double calculateArea(int x, int y){ double outer = pi * x * x; double inner = pi * y * y; return outer-inner; } int main(){ int x = 4; int y = 3; cout <<"area between two given concentric circle is :"<<calculateArea(x, y); return 0; }

area between two given concentric circle is :21.98

- Related Questions & Answers
- How to draw concentric circles in R?
- Check if a given circle lies completely inside the ring formed by two concentric circles in C++
- C program to calculate distance between two points
- C Program to calculate the difference between two time periods
- How to draw concentric circles with dark borders in R?
- How to draw concentric circles with dark borders in R?
- C++ Program to Calculate Difference Between Two Time Period
- Program to calculate area of Enneagon
- Program to calculate Area Of Octagon
- Program to calculate the area of a Tetrahedron
- Calculate minutes between two dates in C#
- Python Program to calculate the area of a Tetrahedron
- Program to calculate area and perimeter of equilateral triangle in C++
- Program to calculate area and perimeter of Trapezium
- Java Program to calculate area of a Tetrahedron

Advertisements