class triangle
{
int base;
int height;
}
class main
{
public static void main(String args[])
{
box obj = new triangle();
obj.base = 10;
obj.height = 2;
int y = 1/2(obj.base * obj.height);
System.out.print(y);
}
}

Posted on by