programming-examples/perl/Statement/Nested for loop.pl

6 lines
134 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
for ($rows=5; $rows>=1; $rows--){
for ($columns=1; $columns<=$rows; $columns++){
printf "*";
}
print "\n";
}