crsandu icon

Untitled

crsandu | PRO | 01/03/16 02:36:17 PM UTC | 0 ⭐ | 319 👁️ | Never ⏰ | []
C++ |

300 B

|

None

|

0 👍

/

0 👎

Problema: 
 
#include <iostream>
using namespace std;
int nr, n, ok = 0;
int main()
{
  cin >> n;
  for (int i=1; i<=n; i++)
  {
    cin >> nr;
    if (nr % 2 == 1)
    {
      ok = 1;
    }
  }
  if (ok != 1)
  {
    cout << "DA";
  }
  else
  {
    cout<< "NU";
  }
  return 0;
}

Comments