Friday, November 22, 2013

Do...While not functioning as expected.

Hi. Try the code below. You need to combine the conditions into a single while statement. The second while statement does not apply to the do loop it is being executed after the first while condition has been met and basically doing nothing indefinitely.



do
{
//your code here
}
while (i <= j & j <= 10);


No comments:

Post a Comment