I have to print the 30 numbers before the number chosen by the user.
while(valor > (30 - valor)){
System.out.println(valor);
--valor;
}
I did so, but it does not print the previous 30, sometimes yes, sometimes not, where can I be wrong? (it has to be done with while).