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