Hello,
Your second while loop causes an infinite loop because j will always equal to 10 so you may want to remove the equality operator on your second loop, in fact, you should remove it completely because it doesn't do anything and do something like this if you want to impose a maximum value.
do
{
i++;
}
while (i <= j && i < 10);
Regards,
Eyal Shilony
No comments:
Post a Comment