import java.util.Scanner;
public class ApruebaONo { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); boolean seguimos = true; double cuantasNotas = 0; double total = 0;
while (seguimos){
System.out.println("Nota!:");
total += teclado.nextDouble();
cuantasNotas++;
System.out.println("Agregamos otra nota? true o false");
seguimos = teclado.nextBoolean();
}
if (total/cuantasNotas >= 6.9){
System.out.println("Aprobado");
} else if (total/cuantasNotas >= 4.9 ) {
System.out.println("Safaste");
}else {
System.out.println("Estas en el horno, pasa por caja a pagar");
}
}
}