main() def fact( n ) if lt(n 1) return 1 else temp = fact( n-1 ) return n * temp end end def main() "enter n: " n = input() print( fact(n) ) end