Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String args[]) {
- int[] n = {1, 8, -5, 64, 32, 11};
- int min = n[0];
- for(int x: n) {
- if(x < min) min = x;
- }
- System.out.println("Minimal element: " + min);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement