Hi all, I'm having trouble printing the output of a piecewise defined function
the function is f(x)= 1 for x=0,1,2
f(x-2) + f(x-3) for x>2
so the user will enter a value for x and I have to print all of the values of the function up to x. I'm trying to do this with loops, I'm not sure if recursion can be used but I would like to do it with loops/if statements only. I can obviously print the first 3 values of x. Can anyone add any tips? Thanks