// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package basic

object Func {
  def fac(v: BigInt): BigInt = if(v <= 1) 1 else v*fac(v-1)
  def main(args: Array[String]): Unit = {
    for(v <- 1 to 20) println(v + "! = " + fac(v))
  }
}
