Fibonacci pattern(pattern 4)


the digit in the second row first column should be 1 but its printing 0.

@srshubhi398 hey shubhi you don’t need to handle this case seperately instead you have to apply a nested loop and do write all your logic inside the the nested loop and all test cases will pass.

it is not working I have tried it in the same code.

@srshubhi398 could you please allow me to debug your code?

haan please if you can it’ll be of great help

@srshubhi398 hey shubhi all you need to print 0 so print n1 instead of sum the first element is n1 is 0

i tried but was not working.the whole series was disturbed

@srshubhi398 hey shubhi I have debug your code

Thank you so much.It worked.