Area of the circumcircle of any triangles with sides given | Python3 Program to find the area the circumcircle of the given triangle ; Function to find the area of the circumcircle ; the sides cannot be negative ; semi - perimeter of the circle ; area of triangle ; area of the circle ; Get the sides of the triangle ; Find and print the area of the circumcircle
import math NEW_LINE def circlearea ( a , b , c ) : NEW_LINE INDENT if ( a < 0 or b < 0 or c < 0 ) : NEW_LINE INDENT return - 1 ; NEW_LINE DEDENT p = ( a + b + c ) / 2 ; NEW_LINE At = math . sqrt ( p * ( p - a ) * ( p - b ) * ( p - c ) ) ; NEW_LINE A = 3.14 * pow ( ( ( a * b * c ) / ( 4 * At ) ) , 2 ) ; NEW_LINE return A ; NEW_LINE DEDENT a = 4 ; NEW_LINE b = 5 ; NEW_LINE c = 3 ; NEW_LINE print ( float ( circlearea ( a , b , c ) ) ) ; NEW_LINE