Created
November 12, 2017 22:29
-
-
Save ldco2016/9913e1e9579efabd188d706611c4e762 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function main() { | |
| var n = parseInt(readLine()); | |
| for (i = 1; i <=n; i++){ | |
| line = Array(n).fill(' '); | |
| for (j = 0; j < i; j++){ | |
| line[j] = '#'; | |
| } | |
| console.log(line.reverse().join('')) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment