1 test case failing

import java.util.*;
public class Main {
static void fib(int f[], int N)
{

    f[1] = 0;
    f[2] = 1;

    for (int i = 3; i <= N; i++)

        
        f[i] = f[i - 1] + f[i - 2];
}

static void fiboTriangle(int n)
{
	if(n<=0 || n==1 ){
		return ;
	}

    
    int N = n * (n + 1) / 2;
    int f[] = new int[N + 1];
    fib(f, N);

    
    int fiboNum = 1;

    
    for (int i = 1; i <= n; i++) {
        
        for (int j = 1; j <= i; j++)
            System.out.print(f[fiboNum++] + " ");

        System.out.println();
    }
}
public static void main(String args[]) {
	Scanner s=new Scanner(System.in);
	int n=s.nextInt();
    fiboTriangle(n);

}

}
can u please tell me which test case is failing

Hey @prateekmalhotra051199 Your code is failing for n = . Your code is printing nothing for n = 1.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.