You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static void main(String[] args) {
int[] numbers = {10, 25, 50, 5, 35, 75, 20};
int max = numbers[0];
for (int i = 1; i < numbers.length; i++) {
if (numbers[i] > max) {
max = numbers[i];
}
}
System.out.println("The largest element in the array is: " + max);
}
}
The text was updated successfully, but these errors were encountered:
public class Main {
}
The text was updated successfully, but these errors were encountered: