Advertisement
AnaBerende

Met2

Jan 29th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int v[101];
  4. int main ()
  5. {
  6. int i, n, contor=0;
  7. cin>>n;
  8. for(i=1; i<=n; i++)
  9. {
  10. cin>>v[i];
  11. if(v[i]%2!=0)
  12. {
  13. contor++;
  14. }
  15. }
  16. if(contor==0)
  17. {
  18. cout<<"DA";
  19. }
  20. else
  21. {
  22. cout<<"NU";
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement