Created
October 16, 2018 19:12
-
-
Save alkayesdev/2699cd75eeacd05342fab40670fbf367 to your computer and use it in GitHub Desktop.
for loop project
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 num = +process.argv[2]; | |
| if(!Number.isInteger(num)){ | |
| console.log("the provided is not a number"); | |
| process.exit(); | |
| } | |
| for(let i=1; i<=10; i++){ | |
| console.log(`${num}x${i} = ${num*i}`); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment