Perimeter and Area of Varignon 's Parallelogram | Java code to find the perimeter and area ; Function to find the perimeter ; Function to find the area ; Driver code
import java . lang . * ; class GFG { public static double per ( double a , double b ) { return ( a + b ) ; } public static double area ( double s ) { return ( s / 2 ) ; } public static void main ( String [ ] args ) { double a = 7 , b = 8 , s = 10 ; System . out . println ( per ( a , b ) ) ; System . out . println ( area ( s ) ) ; } }