✏️ Explanatory Question

Give the output of the following program segment and also mention the number of times the loop is executed:

int a,b;
for (a = 6, b = 4; a <= 24; a = a + 6)
{
    if (a%b == 0)
    break;
}
System.out.println(a);

👁 93 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Answer not available right now.