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