# 108e3000a54a74f1182646069dc0d36b99201d15ace8270a3c40968320813cec Elan 1.7.0 guest default_profile valid

main
  print factorial(7)
end main

function factorial(n as Int) returns Int
  return (if n > 1 then n*factorial(n - 1) else 1)
end function

test 
  assert factorial(3) is 6
end test
