1

What will be the output of the following program?

int count = 1;
while (count <= 15)
{
System.out.println(count % 2 == 1 ? "***" : "+++++");
++count;
}
  • A

    15 times **

  • B

    15 times +++++

  • C

    8 times ***, 7 times +++++

  • D

    both will print only once