-
February 18th, 2004, 10:41 AM
#1
Junior Member
Program in C for 100 Factorial
I know Calculating Factorial for any number is easy.but how about in C which has very limited number bytes for integer. It can calculate till factorial 20 or so.. I tried Using long int but it has its own limitations .Using long it can calculate till 40 factorial.But i want till 100 Factorial . any clues...???
by the way i have used TurboC , windows 98
-
February 18th, 2004, 10:53 AM
#2
http://pscode.com/vb/scripts/ShowCod...=7018&lngWId=3
I just found that... I'm going to compile it now and test it out. I'll get back to you.
mjk
Edit: Just tried it out. It appears to work fine but I can't make very good sense of the code; there are absolutely no comments or explanations.
http://pscode.com/vb/scripts/ShowCod...=7091&lngWId=3
That was another result on pscode.com (great source code site).
Hope some of this helped you. Later.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|