• + 0 comments

    Scala

    def f(n: Int): Unit = {
      if (n > 0) {
        println("Hello World")
        f(n - 1)      
      }
    }