Created
January 28, 2019 07:23
-
-
Save PierraKimathi-zz/b89fcebca1c306e8fd0cd9df8b6b5840 to your computer and use it in GitHub Desktop.
Simple multiplication
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 simpleMultiplication(number) { | |
var multi =0; | |
if(number%2==0){ | |
multi = number*8; | |
}else{ | |
multi = number*9; | |
} | |
return multi; | |
console.log(multi) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment