Area of a Triangle
Compute a triangle's area from its base and height.
Input format
A single line with two non-negative integers BASE and HEIGHT.
Output format
Print the triangle area using integer arithmetic: BASE * HEIGHT / 2 (the division drops any fraction).
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
4 3Expected output
6Example 2
Input
10 6Expected output
30