While
Creating a while loop
Syntax
while (<condition>) {
<block>
}Example
int i = 1;
while (i < = 10) {
println(i);
i++;
}Last updated
while (<condition>) {
<block>
}int i = 1;
while (i < = 10) {
println(i);
i++;
}Last updated