0
good day
why continune is not working? https://code.sololearn.com/c9WXJMJFCPMj/?ref=app
2 ответов
+ 2
That's because you are not decrementing the value of number whenever it's divisible by 3(so the same thing happens again and again), try decrementing the value of number as well when it's divisible by 3 like in the snippet given below.
do{
if(number % 3==0){
number--;
continue;
}
System.out.println(number);
number--;
} while(number>=0);
0
I understood you. Many thanks