✏️ Explanatory Question

Analyze the following program segment and determine how many times the loop will be executed and what will be the output of the program segment.

int k = 1;
int i = 2;
while(++i < 6) {
    k *= i;
}
System.out.println(k);

👁 117 Views
📘 Detailed Answer
🟢 Easy
💡

Answer with Explanation

Answer not available right now.