In: Computer Science
1 ans:
Similarities
1)The one of the main similarity is both the recursion as well as iteration are involved repetition
2)The recursion and iteration both can only use control structure which means recursion used if and else if and else statements based on the recursion call the method n number of times which is repetition method and iteration uses for loop or while loop which both are control structures so it was another similarity
2 ans:
Differences:
1)Iteration may or may not be function call based on the usage while use for loop or while loop with the loop if we need call a function than we can call otherwise we can't call it was called based on usage but coming to recursion the function call must be done repeatedly so then we can achieve recursion it was the difference
2)in iteration set of instructions can each time executed repeatedly but in recursion it can done based on conditional statements
#if you have any doubt or more information needed comment below..i will respond as possible as soon..thanks,..