4 lines
165 B
Perl
4 lines
165 B
Perl
|
LOOP: for ( $number = 1; $number <= 10; ++$number ) {
|
||
|
next LOOP if ( $number % 2 == 0 );
|
||
|
print "$number "; # displays only odd numbers
|
||
|
}
|