Created
August 16, 2017 17:43
-
-
Save aconanlai/e5f6773967ad40f37881e6253c03a966 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
let hua = []; | |
for (let i = 1; i < 10; i ++) { | |
let num = 0; | |
for (let j = 0; j < i; j++) { | |
num += ((9 * (Math.pow(10, j))) * (140 - (j + i + 3))) | |
} | |
hua.push(num); | |
} | |
console.log(hua); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment