This is the problem:
Develop a recursive function f() to display the sequence:
1 2 3 4 5...i (i-1) (i-2)...2 1
in a text field when f(1,i) is called.
We are not allowed to use loops, global variables, or arrays. We also have to be able to make it work for any starting point and ending point. ex:
f(2,5)=2 3 4 5 4 3 2.
I am completely stumped. Please at least give me a hint.
We are not allowed to use loops, global variables, or arrays.: Are you allowed to code? Start it and bring here the code where you end at, then someone can surely help you finish itf(2,5)is2 3 4 5 4 3 2 1and notf(2,5)=2 3 4 5 4 3 2?