Create a program which calculates the area of a triangle.
Create three variables such as height, base and area with proper data types.
height
base
area
The area of the triangle is 60.
Integer height = 10; Integer base = 12; Decimal area = (height * base)/2; System.debug('The area of the triangle is ' + area);