Perimeter of an Ellipse | Java program to find perimeter of an Ellipse . ; Function to find perimeter of an ellipse . ; formula to find the Perimeter of an Ellipse . ; Display the result ; Driver code
import java . lang . Math ; class GFG1 { static void Perimeter ( double a , double b ) { double Perimeter ; Perimeter = ( double ) 2 * 3.14 * Math . sqrt ( ( a * a + b * b ) / ( 2 * 1.0 ) ) ; System . out . println ( " Perimeter : ▁ " + Perimeter ) ; } public static void main ( String [ ] args ) { double a = 3 , b = 2 ; Perimeter ( a , b ) ; } }