in reply to Re: do while loops
in thread do while loops
Actually, I think the problem is larger than that.
shouldn't it be:
shouldn't it be:
$value = 15; # 15, not 5. 5 doesn't make sense if we're not increment +ing. do { print "$value\n"; $value = $value - 1; } while($value > 10);
jdporter fixed formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: do while loops
by Roy Johnson (Monsignor) on Jan 20, 2006 at 22:25 UTC |
In Section
Tutorials