variables - How to define procedures in Wolfram correctly? -
here algorithm finding trailing zeros in n!
- variables n = number , zeros = 0
- while n >= 1, do n = floor[n/5.] , zeros += n
- print out zeros
most doing wrong variables inside procedure, because line line code works !
Comments
Post a Comment