Scanner lector = new Scanner(System.in);
int numerosIngresados;
int numeroMayor = 0;
int numeroDiez = 0;
int sumaImpares = 0;
int contadorImpares = 0;
int contadorNumeros = 0;
for(int i = 0; i < 6; i++){
System.out.println("Digite 6 numeros");
numerosIngresados = lector.nextInt();
if(numerosIngresados == 0){
break;
}else if(numerosIngresados > numeroMayor){
numeroMayor = numerosIngresados;
}else if(numerosIngresados == 10){
numeroDiez++;
}else if(numerosIngresados % 2 == 1){
}
numerosIngresados = contadorNumeros++;
}
System.out.println("El numero mayor es " + numeroMayor);
System.out.println("El numero diez ha sido ingresado " + numeroDiez + " veces");
System.out.println("La cantidad de numeros ingresados han sido: " + contadorNumeros);
//System.out.println("El promedio de la suma de los numeros impares es " + sumaImpares);
When I print the number of times I have put the number 10, it tells me that I have entered it once less than what I have actually done. and how can I calculate the average of the odd numbers I entered?