Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle | C # Program to find the biggest Reuleaux triangle inscribed within in a square which in turn is inscribed within an equilateral triangle ; Function to find the biggest reuleaux triangle ; side cannot be negative ; height of the reuleaux triangle ; area of the reuleaux triangle ; Driver code
using System ; class GFG { static float Area ( float a ) { if ( a < 0 ) return - 1 ; float x = 0.464f * a ; float A = 0.70477f * ( float ) Math . Pow ( x , 2 ) ; return A ; } public static void Main ( ) { float a = 5 ; Console . WriteLine ( String . Format ( " { 0,0 : # .00000 } " , Area ( a ) ) ) ; } }