# Search Results

1. Post

### Calculating Factorial (Recursively & Iteratively)

Is this code working cuz I tried it and it's not !?
Post by: pr1nc3k1d, Jan 15, 2008 in forum: C
2. Post

### Calculating Factorial (Recursively & Iteratively)

Did you try the code ? It's working fine ( no overflow ) but it's also limited. I didn't say that it's not. I wanted to write a code which...
Post by: pr1nc3k1d, Jan 11, 2008 in forum: C
3. Post

### Calculating Factorial (Recursively & Iteratively)

the approximation above was for 1000!
Post by: pr1nc3k1d, Jan 11, 2008 in forum: C
4. Post

### Calculating Factorial (Recursively & Iteratively)

Oh .. :) it's calculating ... as you can see .. :) but you need to put the result into some data type which can hold this large number. Usually...
Post by: pr1nc3k1d, Jan 11, 2008 in forum: C
5. Post

### Calculating Factorial (Recursively & Iteratively)

And Sterling's approximation is : n! ~ e^(-n)*n^n*Sqrt(2*PI*n)
Post by: pr1nc3k1d, Jan 11, 2008 in forum: C
6. Post

### Calculating Factorial (Recursively & Iteratively)

Yes, but I wanted the full and correct result, not only an approximation. Here is my result ( the factorials from 1 to 1.000 ) : 1!= 1...
Post by: pr1nc3k1d, Jan 11, 2008 in forum: C
7. Post

### Calculating Factorial (Recursively & Iteratively)

Here it is. The factorial of the numbers from 1 over to 1000 in 51 seconds. #include <stdio.h> #include <conio.h> #include <time.h> void...
Post by: pr1nc3k1d, Dec 8, 2007 in forum: C
8. Post

### Calculating Factorial (Recursively & Iteratively)

Yes but it prints on the screen the factorials in rows from 1 to a value . Here is the new version which prints the results into a file:...
Post by: pr1nc3k1d, Dec 8, 2007 in forum: C
9. Post

### Calculating Factorial (Recursively & Iteratively)

I made it but I don't really like it cuz` it's slow. It took about 6-7 minutes waiting for the result of " 1000! ". #include <iostream.h>...
Post by: pr1nc3k1d, Dec 8, 2007 in forum: C
10. Post

### Calculating Factorial (Recursively & Iteratively)

Yes, it has, but i'm thinking on an algorithm which not calculates the result,but it generates it into a vector or a list. For example you can get...
Post by: pr1nc3k1d, Dec 7, 2007 in forum: C
11. Post

### Calculating Factorial (Recursively & Iteratively)

Everything looks good and nice but what's if you want to calculate " 1000! " or the factorial of greater values ? :) The " unsigned int " type can...
Post by: pr1nc3k1d, Dec 6, 2007 in forum: C