By Using JAVA Class find the area of a Paralelogram

class Paralelogram{
    double length;
    double breadth;
}
public class Main{
    public static void main (String args[]){
        Paralelogram para = new Paralelogram();
        double area;
        para.length=8.5;
        para.breadth=7.5;
                area=para.length*para.breadth;
        System.out.println("The Area is: " + area);
        
    }
}


The Output is Given Below:
The Area is: 63.75

0 comments:

Post a Comment