package fa;
import java.util.Scanner;
public class Student1 {
@SuppressWarnings("empty-statement")
public static void main(String[] args){
Scanner imput = new Scanner(System.in);
double total;
int numberOfStudent;
int j=0;
System.out.println("Enter the number of the student in the class: ");
numberOfStudent = imput.nextInt();
final int ARRAY_LENGTH = numberOfStudent;
int[] array = new int[ARRAY_LENGTH];
for(int x = 1;x <= array.length; x++){
System.out.printf("Enter The score of student%d :",x );
array[j]=imput.nextInt();
j++;
}
}
}
I do not know what to do and I am sorry about before

New Topic/Question
Reply



MultiQuote




|