Find area of the larger circle when radius of the smaller circle and difference in the area is given | C ++ implementation of the approach ; Function to return the area of the bigger circle ; Find the radius of the bigger circle ; Calculate the area of the bigger circle ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; const double PI = 3.14 ; double find_area ( int r , int d ) { double R = d / PI ; R += pow ( r , 2 ) ; R = sqrt ( R ) ; double area = PI * pow ( R , 2 ) ; return area ; } int main ( ) { int r = 4 , d = 5 ; cout << find_area ( r , d ) ; return 0 ; }