#Need to find the max number from user input.

6 messages · Page 1 of 1 (latest)

steel heath
#
    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]});
        }
tame urchinBOT
#

This post has been reserved for your question.

Hey @steel heath! Please use /close or the Close Post button 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.

rapid marten
#

What do you mean by that

naive swallow
#

Probably not that they need the average shirt from garden output

#

Still, I don't see any explanation of what they need help on