Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Rewrite the following set of program segment using for loop int x, t = 0, s =0; x=2; do { s += x; y=0; do { t = t + s * y; y++; }while( y < x/2); cout<

OpenStudy (anonymous):

@ajprincess @A.Avinash_Goutham

OpenStudy (anonymous):

the first for is smthin like for(x=0;x<20;x++) and i think u shud work on the second

OpenStudy (anonymous):

for(initialise ; bounds ; increment) any of those fields can be empty.... and when u have multiple initialisations u use a ' , ' and bound is a logical expression

OpenStudy (anonymous):

int x, t = 0, s =0; x=2; for(x=0;x<20;) { s += x; y=0; for(y=0; y < x/2; y++;) { t = t + s * y; } cout<<t<<s; cout<<endl; x++; }

OpenStudy (anonymous):

humph u r close @pandabodoh

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!