seemed to have made infinate while loop - TechRepublic
General discussion
May 31, 2003 at 12:48 PM
malik m

seemed to have made infinate while loop

by malik m . Updated 23 years ago

hi i seem to have made an infinate while loop i was wondering if someone could point this newbie to where he went wrong. here’s the source code….

#include
#include
using namespace std; //introduces namespace std
int main( void )
{
int tasknumber = 0;

while(tasknumber < 9) { if(tasknumber % 2 == 0) { cout<

This discussion is locked

All Comments