1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

need help on this program output

Discussion in 'C' started by carl, Jul 15, 2006.

  1. carl

    carl New Member

    Hi all experts out there ....

    need some ...new to programming..

    below is the program for which i need to know the the process....I know the aswer which is = 9.....but need to know how come... what is the calculation.

    Consider the following program segment:

    i = 6720; j = 4;

    WHILE ( (i % j) = = 0){

    i = i / j;

    j = j + 1;

    }

    plz help...need it asap.

    thanks & regards,

    carl

    carl.banderas@rediffmail.com
     
  2. shabbir

    shabbir Administrator Staff Member

    The loop continues till it does not satisfy (i % j) = = 0 and when it satisfy the value is 9.
     

Share This Page