import java.util.*;
class Main {
public static void main
(String[] args
) { Scanner x
= new Scanner
(System.
in); System.
out.
println("inisira a quatidade de bimestres"); int bim = x.nextInt();
double soma= 0;
for (int i = 0; i < bim; i++) {
System.
out.
println("Insira a nota do " + (i
+ 1) + "º Bimestre"); soma += x.nextDouble();
}
System.
out.
println(soma
/ bim
); }
}
//https://pt.stackoverflow.com/q/325788/101
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgTWFpbiB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CgkgICAgU2Nhbm5lciB4ID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCSAgICBTeXN0ZW0ub3V0LnByaW50bG4oImluaXNpcmEgYSBxdWF0aWRhZGUgZGUgYmltZXN0cmVzIik7CgkgICAgaW50IGJpbSA9IHgubmV4dEludCgpOwoJICAgIGRvdWJsZSBzb21hPSAwOwoJICAgIGZvciAoaW50IGkgPSAwOyBpIDwgYmltOyBpKyspIHsKCSAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJJbnNpcmEgYSBub3RhIGRvICIgKyAoaSArIDEpICsgIsK6IEJpbWVzdHJlIik7CgkgICAgICAgIHNvbWEgKz0geC5uZXh0RG91YmxlKCk7CgkgICAgfQoJICAgIFN5c3RlbS5vdXQucHJpbnRsbihzb21hIC8gYmltKTsKCX0KfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMzI1Nzg4LzEwMQ==