User Story Expected Outcome Code Video User Story Create a program which calculates the area of a triangle. Create three variables such as height, base and area with proper data types. Expected Outcome The area of the triangle is 60. Code Integer height = 10; Integer base = 12; Decimal area = (height * base)/2; System.debug('The area of the triangle is ' + area); VideoVideo does not exists.
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);