Getting wrong answer in class assignment question

I HAVE APPLIED BACKTRACKING APPROACH AND FIBONACCI SEQUENCE WAS FOUND…BUT IT IS GIVING WRONG ANSWER…PLS HELP…

Hi Saksham, save your code on ide.codingblocks.com and share the link here along with the name of the question.

https://ide.codingblocks.com/s/60915
Question is in the Backtracking Section (Class Assignment)

Pls share the question here.

Hi Saksham, you’re not printing the output in the desired format.
The output format is
#1 : 2
#2 : 3
#3 : 5
Your code’s output is:
2
3
5

Just correct the output format, rest of the logic works fine.