git @ Cat's Eye Technologies Dipple / master julia / fact.jl
master

Tree @master (Download .tar.gz)

fact.jl @masterraw · history · blame

# SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
# For more information, please refer to <https://unlicense.org/>
# SPDX-License-Identifier: Unlicense

function factorial(x)
  if x  1
    return 1
  else
    return x * factorial(x - 1)
  end
end

v = factorial(big(9000))
s = string(v)

for c in s
  println(c)
end