the output i get is: **** **** **** **** but i want to print a hollow square of asterisks like this: **** *    * *    * **** how do i do this? what changes do i make to my code? thanks in advancemy $x = 4; my $y = 4; for (1..$x) { print "*" x $y, "\n"; }
In reply to Printing a hollow square of Asterisks by Rafter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |