class TWELVE{
public int AREA(int side){
return(6*side*side);
}
public int AREA( int L, int B,int H){
return 2*(L*B+B*H+H*L);
}
public static void main( String arr[] ){
TWELVE temp = new TWELVE();
System.out.println("Surface Area of Cube: "+temp.AREA(4));
System.out.println("Surface Area of Cuboid: "+temp.AREA(2,3,4));
}
}
|