• + 0 comments

    scala

    object Solution extends App {
        import scala.io.StdIn.readInt
        def f(num:Int) : List[Int] = {
            val list = List.range(0, num)
            list
        }
    
        println(f(readInt))
    }