Trying to learn recursion. Problem asks to use recursion on non-negative number to insert commas. Ex: 20131 as 20,131. My program adds in an extra comma at end. Any help in pushing me in the correct direction to fix this would be appreciated.
input: 546789301
output: 546,789,301, <--note extra comma
Thanks hamsterman. I played around with it and somehow got it working. If there is any other poor beginner that is assigned this problem, here is a working code set for your review.