shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
So here are the three other solutions I can think of
Code:
for (int i=0;i + n; i--)
Code:
for (int i=0;-i < n; n--)
Code:
for (int i=40;i < n; i--)
Thanks
Shabbir Bhimani
carl's Avatar, Join Date: Jul 2006
Newbie 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
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Please refer to my reply in thread need help on this program output