Maximize a value for a semicircle of given radius | C # program to find the maximum value of F ; Function to find the maximum value of F ; using the formula derived for getting the maximum value of F ; Driver code
using System ; class GFG { static double maximumValueOfF ( int R ) { return 4 * R * R + 0.25 ; } public static void Main ( ) { int R = 3 ; Console . WriteLine ( maximumValueOfF ( R ) ) ; } }