Loops/Do-while
< Loops
Loops/Do-while
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Start with a value at 0. Loop while value mod 6 is not equal to 0. Each time through the loop, add 1 to the value then print it. The loop must execute at least once.
Java
<java>int val = 0; do{
val++; System.out.println(val);
}while(val % 6 != 0);</java>