programming-examples/perl/Statement/Using the do-while repetition structure.pl

9 lines
94 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$counter = 1;
do
{
print "$counter ";
} while ( ++$counter <= 10 );
print "\n";