Sollicitatievraag bij Premium Minds

Make a fibonacci function recursively.

Antwoord op sollicitatievraag

Anoniem

21 dec 2020

static void printFibonacci(int count){ if(count>0){ n3 = n1 + n2; n1 = n2; n2 = n3; System.out.print(" "+n3); printFibonacci(count-1); } }