Facebook
From ds, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 109
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    int a,b;
  7.    cin >>a>>b;
  8.    if ((a*b)%2==0)
  9.    cout << 0;
  10.  else
  11.  {
  12.         if(a>b)
  13.         cout<<b;
  14.         else
  15.         cout<<a;
  16.  }
  17.   return 0;
  18. }
  19.