Created
November 7, 2017 18:19
-
-
Save dflima/fd952204ed4c892d35d11f14e5a678d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$handle = fopen ("php://stdin","r"); | |
fscanf($handle,"%d",$n); | |
for ($i = 1; $i <= $n; $i++) { | |
print str_repeat(' ', $n-$i); | |
print str_repeat('#', $i); | |
print PHP_EOL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment