Results 1 to 2 of 2

Thread: Program in C for 100 Factorial

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    15

    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

  2. #2
    Senior Member
    Join Date
    Feb 2004
    Posts
    620
    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
  •