{"id":22914,"date":"2021-09-29T20:13:59","date_gmt":"2021-09-29T14:43:59","guid":{"rendered":"https:\/\/python-programs.com\/?p=22914"},"modified":"2021-11-22T18:35:36","modified_gmt":"2021-11-22T13:05:36","slug":"python-program-for-area-of-a-circumscribed-circle-of-a-square","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-area-of-a-circumscribed-circle-of-a-square\/","title":{"rendered":"Python Program for Area of a Circumscribed Circle of a Square"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Check if a given Circle lies Completely Inside the Ring formed by Two Concentric Circles<\/a>
\nGiven the side length of a square, the task is to calculate the area of a circumscribed circle around the given square.<\/p>\n

Formula:<\/strong><\/p>\n

(pi * s* s)\/2<\/p>\n

where pi= 3.14159265<\/p>\n

s = side length of square.<\/p><\/blockquote>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side of square = 5<\/pre>\n

Output:<\/strong><\/p>\n

The area of an circumscribed circle is for a given square of side { 5 } =  39.27<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side of square = 8<\/pre>\n

Output:<\/strong><\/p>\n

The area of an circumscribed circle is for a given square of side { 8 } =  100.53<\/pre>\n

Program for Area of a Circumscribed Circle of a Square in Python<\/h2>\n

Below are the ways to calculate the area of a circumscribed circle around the given square in python:<\/p>\n