Home > Back-end >  C language function recursive call related issues
C language function recursive call related issues

Time:06-05

Teachers are given a problem, there is thought, but I don't know how to use the code, title as input a number n n eggs, eat at least two at a time, scope of n (2, 10], list each way, format is as follows:
5
5 - & gt;
3 - & gt; 2
2 - & gt; 3
Please, bosses

CodePudding user response:

refer to the original poster goo dalai son alter response:
teacher give a problem, there is thought, but I don't know how to use the code, title as input a number n n eggs, eat at least two at a time, scope of n (2, 10], list each way, format is as follows:
5
5 - & gt;
3 - & gt; 2
2 - & gt; 3
Please, bosses

Correct format should be
Input 5
Output:
1: - & gt; 2 - & gt; 3
2: - & gt; 3 - & gt; 2
3: - & gt; 5

CodePudding user response:

The number of time to eat no limit?

CodePudding user response:

refer to the second floor Donald_Shallwing response:
once the number of eating no limit?

No, can eat all at a time

CodePudding user response:

refer to the second floor Donald_Shallwing response:
once the number of eating no limit?

It is at least two accurate, finish at all

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related