2
I’m not getting to report 10 student grades.
import java.util.Scanner;
public class exer {
public static void main(String[] args){
Scanner scn = new Scanner(System.in);
double[] N = new double[10];
int i;
for(i=0; i<N.length; i++){
System.out.println("Informe a Nota");
N[] = scn.nextDouble();
}
}
}
Just a Note: you are not following the Java naming convention, Class names must start with uppercase letter (
Exer
instead ofexer
), and, variable names start with lowercase letter (n
instead ofN
).– Douglas
Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site.
– Maniero
I answered yes that it worked. Vlw, but I’m a beginner here so I don’t frequent much hehe
– user90625
You’ve done the tour, @user90625 ? It teaches you to accept the questions. Click on the green "v" that appears just below the vote. You earn even 2 reputation points by accepting a question
– Jefferson Quesado