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