Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Egor
Language: C/C++
Code:
#include<iostream>
using namespace std;
int main() {
 int n, m, result;
 cin >> n >> m;
 
 if((n*m)%2 == 1)
 {
      result = ((n*m)+1)/2;
 }
 else
 {
      result = (n*m)/2;
 }
 cout << result;
}
Comments: