[java]
/*To find the area of triangle*/
/**
*@author:Candidjava.com
*@Description:To calculate area of trianlge
*/
public class Area
{
public static void main(String[] args)
{
int area;
int breath=12;
int height=20;
area=(breath*height)/2;// use this line if find the area of triangle
System.out.println("area:"+area);// use this line display the value area
}
}
[/java]