Scala – Function parameter with Default Value

In Scala, we have seen how to pass the function as parameter. Now, Suppose you want to define your function in such a way that if you don’t pass any arguments, it gives you...