#K59832. Right-Angled Triangle Area Calculation
Right-Angled Triangle Area Calculation
Right-Angled Triangle Area Calculation
Given two integers representing the base and height of a right-angled triangle, calculate the area using integer (floor) division. The area is computed using the formula: \(\lfloor\frac{\text{base} \times \text{height}}{2}\rfloor\). Note that the division here is integer division, which means the fractional part is discarded.
inputFormat
The input consists of a single line containing two space-separated integers: base
and height
.
outputFormat
Output a single integer representing the floor of the area of the right-angled triangle, computed as \(\lfloor\frac{\text{base} \times \text{height}}{2}\rfloor\).
## sample5 3
7