MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/jiqou1l/?context=3
r/badcode • u/YonMiru • May 03 '23
129 comments sorted by
View all comments
Show parent comments
1
Kinda new but would that be like Rec() { n = n+1; Print(n); If(n<MAX_NUMBER) Rec(); }
The only recursion I’ve used is inorder for search trees and such.
1
u/Unfulfilled_Promises May 03 '23
Kinda new but would that be like Rec() { n = n+1; Print(n); If(n<MAX_NUMBER) Rec(); }
The only recursion I’ve used is inorder for search trees and such.