int a = 1;
while (a < 20) {
if ((++a % 3) == 0)
System.out.println(“Divisible 3”);
else if ((a++ % 3) > 0)
System.out.println(“Not Divisible 3”);
else break;
}
I'm not a programme exaper, i need the solution on this question. How many times following loop will iterate?
Aucun commentaire:
Enregistrer un commentaire