Advertisement
101dogg

Untitled

Apr 25th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public static void main(String args[]) {
  2. int[] n = {1, 8, -5, 64, 32, 11};
  3. int min = n[0];
  4. for(int x: n) {
  5. if(x < min) min = x;
  6. }
  7. System.out.println("Minimal element: " + min);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement