need help with recursion

Newbie Member
11Dec2007,22:12   #1
sa819's Avatar
Is there any way to use recursion in C to calculate the factorials of numbers above 15?
I made a simple program but it can calculate the values satisfactorily only for numbers from one to fifteen.
Ambitious contributor
11Dec2007,22:39   #2
Salem's Avatar
1. Post your code.

2. Don't forget the code tags, ie [code][/code] placed around your code.

3. 16! = 20922789888000. Depending on your data types (int, long, float, double), you could well be experiencing either numeric overflow, or loss of precision. Coping with either of them is no easy task.