1
I have to print the 30 numbers previous to the number chosen by the user.
while(valor > (30 - valor)){
System.out.println(valor);
--valor;
}
I did so, but he does not print the previous 30, sometimes yes, sometimes no, where can I be missing? (has to be done with while).
Thanks for the answer!!! (sorry for the wording in the original question, I was not aware of the restrictions.)
– João Laurent