Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $n = readline();
- echo str_repeat('*', $n) . PHP_EOL;
- for ($i = 0; $i < $n - 2; $i++) {
- echo str_repeat("*", 1);
- echo str_repeat(" ", $n - 2);
- echo str_repeat("*", 1). PHP_EOL;
- }
- echo str_repeat('*', $n);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement