Program to calculate area of an Circle inscribed in a Square

Given the side of a square. The task is to find the area of an inscribed circle in a square.

Examples:

Input : a = 8
Output : Area of an inscribed circle: 50.24

Input : a = 12.04
Output : Area of an inscribed circle: 113.795

Given a square i.e. all sides of a square are of equal length and all four angles are 90 degrees. Below diagram depicts an inscribed circle in a square.

Inscribed circle



Properties of an inscribed circle in a square: