fork download
  1. import java.util.Scanner;
  2.  
  3. class exer {
  4. public static void main(String[] args){
  5. Scanner scn = new Scanner(System.in);
  6. double[] N = new double[10];
  7. for (int i = 0; i < N.length; i++) {
  8. System.out.println("Informe a Nota");
  9. N[i] = scn.nextDouble();
  10. }
  11. }
  12. }
  13.  
  14. //https://pt.stackoverflow.com/a/236186/101
Success #stdin #stdout 0.07s 4386816KB
stdin
1
2
3
4
5
6
7
8
9
10
stdout
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota
Informe a Nota