Computer Science, asked by eierjcgundtu0, 6 months ago

write the output of the following code
into a=1;
while (a<=5)
{
System.out.println("Best of luck ");
a=a+1
}​

Answers

Answered by manogna8bijjala
0

Answer:

best of luck

Explanation:

displays best of luck for 4 times

Answered by purvanshsharma6
0

Answer: It will print Best of Luck 5 times

Explanation: it will print five times because of the a = a+1 or a++ as it will increase the value of a by 1 whenever the condition is true and will exit the loop when the condition becomes false.

Similar questions