object Factorial extends Application{
  def fac(result:int,i:int):int=if(i==0) result else fac(result*i,i-1)

  Console println (fac(1,5))


}
