Java Program to Find Circumference of a Parallelogram

bookmark

class Main
{
    public static void main(String [] args)
    {
        double l = 1;
        double b = 1;
        //find circumferance
        double circumferance =  2*(l+b);
        System.out.println("The circumference of parallelogram is: "+ circumferance);
    }
}

 


Output:

The circumference of parallelogram is: 4.0