I am pasting my code below, please let me know for which test case it is failing, As I am unable to find it.
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int row = 3;
int a = 0;
int b = 1;
int c = a+b;
System.out.println(a+"\t");
if(n==1)
System.out.println(b+"\t");
if(n>=2)
System.out.println(b+"\t"+c+"\t");
while(row<=n){
for(int cst = 1;cst<=row;cst++){
a = b;
b = c;
c = a+b;
System.out.print(c+"\t");
}
System.out.println();
row++;
}
}
}