in reply to do while loops
ok.. the code is bad. That situations cause problems to novices
$value=5 <------ ok that is the problem it does not have ; do{ print "$value\n"; $value=$value-1; } while($value>10);
ok the correct code is
$value=5; # now have ; do{ print "$value\n"; $value=$value-1; } while($value>10);
have a fun
20041024 Edit by ysth: change p tags to code
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: do while loops
by Anonymous Monk on Jan 20, 2006 at 22:10 UTC | |
by Roy Johnson (Monsignor) on Jan 20, 2006 at 22:25 UTC |
In Section
Tutorials