Generation

generate functionMon, 22 May 2023

suma fibonnaci

def fib(n:Int):Int = n match { case 0 => 0 case 1 => 1 case n => fib(n-1) + fib(n-2) }

Questions about programming?Chat with your personal AI assistant