1.

Convert the following segment into an equivalent do loop. int x, c; for (x=10, c=20; c=10; c=c-2) x++;

Answer»

int x, c; 

x=10; 

c=20; 

do 

x++; 

c=c-2; 

}while(c>=10);



Discussion

No Comment Found

Related InterviewSolutions