Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <stdio.

h>

int main() {
int x, y, answer;
scanf("%d %d", &x, &y);

int product = x * y;

if (product % 2 == 0) {
answer = product/2;
}
else {
answer = (product - 1)/2;
}

printf("%d\n", answer);

return 0;
}

You might also like