public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter the number of students: ");
int n = input.nextInt();
double [] numbers = new double[n]; // creates array
double sum = 0;
System.out.println("Enter " + n + " scores: ");
for (int i = 0; i < n; i++) {
numbers[i] = input.nextDouble();
sum += numbers[i];
Arrays.sort(new double[]{numbers[i]});
}
#Need to find the max number from user input.
6 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @steel heath! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
What do you mean by that