hi guys! please help me understand anything about recursion and iteration ways of coding. :) (maybe some overview, details or something) thank u. we haven't had any further discussion about this. ;p but our teacher gave an exercise that goes like this:
make a program that gets the summation of a given number e.g. 4+3+2+1
implement it using both iteration and recursion
ex. enter a positive number: 4
the sum is 10.
make a program that would display the nth of the fibonnaci sequence.
1 1 2 3 5 8 13 21 34 55 ... n
implement it using both iteration and recursion