please help me.
Fibonacci pattern
hello @sakshi.saxena
run ur loop from i=1 (to generalise it for all rows).
then add if statements to handle output for first and second row separately.
unable to start from next line please explain me.
i printed
0
1 1
1 2
check this .
just added two satment to handle 1st two rows and rest of the logic is same as urs.
sir the output is a bit different.
1 Like