Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
Given a circle C1 and it’s a radius r1. And one another circle C2 whose passes through center of circle C1 and touch the circumference of circle C1. The task is to find out the area of circle C2. Examples:
Input: r1 = 4
Output:Area of circle c2 = 12.56
Input: r1 = 7
Output:Area of circle c2 = 38.465
Radius r2 of circle C2 is .
So we know that the area of circle is .
Below is the implementation of the above approach: