Hvernig byrjar þú að skrifa á meðan lykkju í java?
Kóða dæmi
0
0
hvernig á að nota meðan lykkju í java
int count = 10;
while(count < 10) {
System.out.println(count);
count++;
}
//while will run when if the condition is true
//if count is less then 10 the condition is true
//if count is more then 10 or equals to 10 it is false.