/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// usar locale pt-BR para que o separador decimal seja a vírgula
Scanner sc
= new Scanner
(System.
in).
useLocale(new Locale("pt",
"BR")); System.
out.
println("Entre com o numero de notas: "); int quantidadeNotas = sc.nextInt();
double notas[] = new double[quantidadeNotas];
for (int i = 0; i < quantidadeNotas; i++){
System.
out.
println ("Entre com a nota [" + (i
+ 1) + "]: "); notas[i] = sc.nextDouble();
}
for (double nota: notas){
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHVzYXIgbG9jYWxlIHB0LUJSIHBhcmEgcXVlIG8gc2VwYXJhZG9yIGRlY2ltYWwgc2VqYSBhIHbDrXJndWxhCiAgICAgICAgU2Nhbm5lciBzYyA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbikudXNlTG9jYWxlKG5ldyBMb2NhbGUoInB0IiwgIkJSIikpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiRW50cmUgY29tIG8gbnVtZXJvIGRlIG5vdGFzOiAiKTsKICAgICAgICBpbnQgcXVhbnRpZGFkZU5vdGFzID0gc2MubmV4dEludCgpOwoKICAgICAgICBkb3VibGUgbm90YXNbXSA9IG5ldyBkb3VibGVbcXVhbnRpZGFkZU5vdGFzXTsKCiAgICAgICAg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