/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
int[] array = {n1, n2, n3, ... nn}; max = array[0]; for(int i = 0; i < array.length; i++) { if (array[i] > max) { max = array[i]; } }