Computer Science, asked by riz36, 6 months ago

for (a=6, b=4; a<=24; a=a+6)

if(a ·/· b a == 0)

break;

System.out.println(a);



a)Give the output of the above program segment

b)Mention the number of times the loop is executed​

Answers

Answered by jayapraveen34
4

Answer:

Here i consider || in thr if condition so the ans is

6

2

Explanation:

because in the 2nd loop the a value became 12 which became 12%4 =0 so the loop breaks

Similar questions