Given function F, what's the sum of all numbers it prints if called as f(2)?
fun f(n : Int)
{
println(n)
if(n < 5)
{
f(n+1)
f(n+3)
}
}Given function F, what's the sum of all numbers it prints if called as f(2)?
fun f(n : Int)
{
println(n)
if(n < 5)
{
f(n+1)
f(n+3)
}
}Create a free account to access the full topic