Public feed #722477

Mine

public text v1 · immutable
Raw Edit
·published 2007-10-02 01:07 UTC
rendered paste body
total = 10
counter = 0 

do {

  //Since there's no `counter++;` in the do{..}, counter would always remain 0,
  // so the first loop would look like while( 0 >= 10)
  // then the second would look like while(0 >= 10)
  // causing a infinte loop, so the program doesn't terminate
}
 while(counter >= total); // Condition