Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1.  
  2. int
  3. main ()
  4. {
  5. int a[N];
  6. int i, j, min = 10001;
  7.  
  8. for (i = 0; i < N; i++)
  9. {
  10. cin >> a[i];
  11. }
  12.  
  13. for (i = 0; i < N; i++)
  14. {
  15. if (a[i] / 100 >= 1 and a[i] % 4 == 0 and a[i] < min)
  16. {
  17. min = a[i];
  18. }
  19. }
  20. if (min == 10001)
  21. {
  22. cout << "ne naideno";
  23. }
  24. else
  25. cout << min;
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement