Consider the following program fragment i=6720; j=4; while (i%j)==0 { i=i/j;…

ISRO Scientist/Engineer SC 2015

Consider the following program fragment i=6720; j=4; while (i%j)==0 { i=i/j; j=j+1; } On termination j will have the value

  1. A.

    4

  2. B.

    8

  3. C.

    9

  4. D.

    6720

Attempted by 819 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…