Two problems:
1) need a return value to return the factorial. Your function does the recursion but doesn't calculate anything.
2) The function's return value should be int, not void.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,947 posts
since Aug 2005