Take N (number of rows), print the following pattern (for N = 4)
0
1 1
2 3 5
8 13 21 34
not able to solve this problem
Take N (number of rows), print the following pattern (for N = 4)
0
1 1
2 3 5
8 13 21 34
not able to solve this problem
hello @dipeshpandey2001
first u should learn to print first n fibonnaci numbers
and then try this problem
observe that the number of entries in each row is equal to the row number .
for example ->
row 1 has 1 entry
row 2 has 2 entries
row 3 has 3 entries
so on
now u simply have to simulate this and keep printing fibonaci number as its entries.
refer this->
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.